2022-05-26 10:43:44 +00:00
|
|
|
diff --git a/eng/native/init-compiler.sh b/eng/native/init-compiler.sh
|
|
|
|
index 567d18da474..927b3071e92 100755
|
|
|
|
--- a/eng/native/init-compiler.sh
|
|
|
|
+++ b/eng/native/init-compiler.sh
|
2022-06-29 16:16:45 +00:00
|
|
|
@@ -108,7 +108,7 @@ if [[ -z "$CC" ]]; then
|
2022-05-26 10:43:44 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ "$compiler" == "clang" ]]; then
|
|
|
|
- if command -v "lld$desired_version" > /dev/null; then
|
2022-06-29 16:16:45 +00:00
|
|
|
+ if command -v lld || command -v "lld$desired_version" > /dev/null; then
|
|
|
|
# Only lld version >= 9 can be considered stable
|
|
|
|
if [[ "$majorVersion" -ge 9 ]]; then
|
|
|
|
LDFLAGS="-fuse-ld=lld"
|