diff options
-rw-r--r-- | recipes-devtools/clang/clang/llvm-config | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/recipes-devtools/clang/clang/llvm-config b/recipes-devtools/clang/clang/llvm-config index a139514..7788bd5 100644 --- a/recipes-devtools/clang/clang/llvm-config +++ b/recipes-devtools/clang/clang/llvm-config | |||
@@ -5,11 +5,10 @@ | |||
5 | # is needed because arguments like --ldflags, --cxxflags, etc. are set by the | 5 | # is needed because arguments like --ldflags, --cxxflags, etc. are set by the |
6 | # native compile rather than the target compile. | 6 | # native compile rather than the target compile. |
7 | # | 7 | # |
8 | |||
9 | SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | 8 | SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" |
10 | NEXT_LLVM_CONFIG="$(which -a llvm-config | sed -n 2p)" | 9 | NEXT_LLVM_CONFIG="$(which -a llvm-config | sed -n 2p)" |
11 | export YOCTO_ALTERNATE_EXE_PATH="$(readlink -f "$SCRIPT_DIR/../llvm-config")" | 10 | export YOCTO_ALTERNATE_EXE_PATH="${YOCTO_ALTERNATE_EXE_PATH:="$(readlink -f "$SCRIPT_DIR/../llvm-config")"}" |
12 | 11 | export YOCTO_ALTERNATE_LIBDIR="${YOCTO_ALTERNATE_LIBDIR:="/lib"}" | |
13 | if [[ $# == 0 ]]; then | 12 | if [[ $# == 0 ]]; then |
14 | exec "$NEXT_LLVM_CONFIG" | 13 | exec "$NEXT_LLVM_CONFIG" |
15 | fi | 14 | fi |