summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/llvm-common
Commit message (Collapse)AuthorAgeFilesLines
* llvm-config: Fix implementation of --libs flagRicardo Ribalda Delgado2017-07-181-0/+4
| | | | | | | | | | | | | | | | | | llvm-config is called by mesa with the following parameters: llvm-config --libs liba libb libc libd ..... This result in an invalid call of llvm config: llvm-config --libs llvm-config liba llvm-config libb llvm-config libc .... Fix this use. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
* clang: fix the llvm-common wrapperMartin Kelly2017-03-211-8/+33
| | | | | | | | | | | | | | | | | | | | | | 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>
* Intial commitKhem Raj2014-09-111-0/+10
Add clang recipes Signed-off-by: Khem Raj <raj.khem@gmail.com>