summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/llvm-config
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/clang/clang/llvm-config')
-rw-r--r--recipes-devtools/clang/clang/llvm-config38
1 files changed, 19 insertions, 19 deletions
diff --git a/recipes-devtools/clang/clang/llvm-config b/recipes-devtools/clang/clang/llvm-config
index bfdc61a..6a0dd54 100644
--- a/recipes-devtools/clang/clang/llvm-config
+++ b/recipes-devtools/clang/clang/llvm-config
@@ -17,36 +17,36 @@ if [[ $# == 0 ]]; then
17 exec "$NEXT_LLVM_CONFIG" 17 exec "$NEXT_LLVM_CONFIG"
18fi 18fi
19 19
20if [[ $1 == "--libs" ]]; then 20remain=""
21 exec "$NEXT_LLVM_CONFIG" $@ 21output=""
22fi
23
24if [[ $1 == "--bindir" ]]; then
25 unset YOCTO_ALTERNATE_EXE_PATH
26 exec "$NEXT_LLVM_CONFIG" $@
27fi
28
29if [[ $1 == "--libfiles" ]]; then
30 exec "$NEXT_LLVM_CONFIG" $@
31fi
32
33
34for arg in "$@"; do 22for arg in "$@"; do
35 case "$arg" in 23 case "$arg" in
36 --cppflags) 24 --cppflags)
37 echo $CPPFLAGS 25 output="${output} ${CPPFLAGS}"
38 ;; 26 ;;
39 --cflags) 27 --cflags)
40 echo $CFLAGS 28 output="${output} ${CFLAGS}"
41 ;; 29 ;;
42 --cxxflags) 30 --cxxflags)
43 echo $CXXFLAGS 31 output="${output} ${CXXFLAGS}"
44 ;; 32 ;;
45 --ldflags) 33 --ldflags)
46 echo $LDFLAGS 34 output="${output} ${LDFLAGS}"
35 ;;
36 --shared-mode)
37 output="${output} shared"
38 ;;
39 --link-shared)
40 break
47 ;; 41 ;;
48 *) 42 *)
49 echo "$("$NEXT_LLVM_CONFIG" "$arg")" 43 remain="${remain} ${arg}"
50 ;; 44 ;;
51 esac 45 esac
52done 46done
47
48if [ "${remain}" != "" ]; then
49 output="${output} "$("$NEXT_LLVM_CONFIG" ${remain})
50fi
51
52echo "${output}"