]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
llvm: Add llvm-config wrapper to improve flags handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Aug 2022 16:41:35 +0000 (17:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Aug 2022 09:37:11 +0000 (10:37 +0100)
commit193ee1973f613b72f7f99660aecf652b07652d18
treed275c1bfba8ffb3a5529c9644b053d91f0845830
parent5e07e6c376cf46d2788dcef53e9feba890c0236d
llvm: Add llvm-config wrapper to improve flags handling

Add a wrapper for llvm-config which provides flags from the current envrionment
instead of the values hardcoded into llvm-native at compile time. Inspiration
taken from the wrapper in meta-clang but I had to totally rewrite it as:

* the TARGET_* prefixes weren't in our environment
* meson uses --libs --ldflags XXX which didn't work

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/llvm/llvm/llvm-config [new file with mode: 0644]
meta/recipes-devtools/llvm/llvm_git.bb