summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/compiler-rt_git.bb
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2017-03-16 10:49:10 -0700
committerKhem Raj <raj.khem@gmail.com>2017-03-21 11:46:51 -0700
commit9660e15264bd68ce4d62b64de2ea08e6b0debf37 (patch)
tree630a18c3400243517b54b557b071b2161ffdd550 /recipes-devtools/clang/compiler-rt_git.bb
parent589360bcdaa337a125d08ad4ca66e2a19aef0aca (diff)
downloadmeta-clang-9660e15264bd68ce4d62b64de2ea08e6b0debf37.tar.gz
clang: fix the llvm-common wrapper
The llvm-common wrapper refers to the LLVM_WANT_RELEASE variable, which is not actually exported, so it fails. In addition, meta-clang does not support multiple side-by-side LLVM versions anyway, so the logic isn't really needed. After fixing these issues, I discovered that llvm-config doesn't cross-compile properly without more extensive wrapping. Specifically, the native llvm-config supplies --libdir, and other arguments relative to its current executable path, so it points into the native sysroot rather than the target sysroot. In addition, it supplies the native rather than the target compile CFLAGS, LDFLAGS, etc. Fix these issues by doing the following: - Alter the llvm-config to intercept certain flags, such as --cflags, while passing on other flags to the native llvm-config. - Patch llvm-config to be able to specify an alternate root location on which to base --libdir, etc. in order to optionally point into the target sysroot when needed. Signed-off-by: Martin Kelly <mkelly@xevo.com>
Diffstat (limited to 'recipes-devtools/clang/compiler-rt_git.bb')
0 files changed, 0 insertions, 0 deletions