Lines 103-116
Link Here
|
103 |
if tc-is-clang; then |
103 |
if tc-is-clang; then |
104 |
# get the full library list out of 'pretend mode' |
104 |
# get the full library list out of 'pretend mode' |
105 |
# and grep it for libclang_rt references |
105 |
# and grep it for libclang_rt references |
106 |
local args=( $($(tc-getCC) -### -x c - 2>&1 | tail -n 1) ) |
106 |
local compiler_rt=( $($(tc-getCC) -print-libgcc-file-name - 2>&1 ) ) |
107 |
local i |
107 |
if [[ ${compiler-rt} == *libclang_rt* ]]; then |
108 |
for i in "${args[@]}"; do |
108 |
want_gcc_s=OFF |
109 |
if [[ ${i} == *libclang_rt* ]]; then |
109 |
extra_libs+=( "${compiler-rt}" ) |
110 |
want_gcc_s=OFF |
110 |
fi |
111 |
extra_libs+=( "${i}" ) |
|
|
112 |
fi |
113 |
done |
114 |
fi |
111 |
fi |
115 |
fi |
112 |
fi |
116 |
|
113 |
|