all: try more locations to find Clang built-in headers

This commit fixes the case where TinyGo was built with `go build` and
LLVM sources were never downloaded into the TinyGo source directory.
This commit is contained in:
Ayke van Laethem
2019-06-13 13:52:45 +02:00
committed by Ron Evans
parent 3e1c0d90c5
commit a3d1f1a514
4 changed files with 59 additions and 11 deletions
+1
View File
@@ -101,6 +101,7 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act
PanicStrategy: config.panicStrategy,
CFlags: cflags,
LDFlags: ldflags,
ClangHeaders: getClangHeaderPath(root),
Debug: config.debug,
DumpSSA: config.dumpSSA,
TINYGOROOT: root,