diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 16:05:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 16:05:09 +0000 |
commit | 9a52b2875a2d814a19ffcee56bd6b962b994dfcb (patch) | |
tree | 551246daead1fa0c2e4a17a7e22208b13be88bbb /runtime-arm64-lld-fix.patch | |
parent | af7c3c9716770d937544687b482bf62e866193de (diff) |
automatic import of dotnet6.0openeuler24.03_LTSopeneuler23.09
Diffstat (limited to 'runtime-arm64-lld-fix.patch')
-rw-r--r-- | runtime-arm64-lld-fix.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime-arm64-lld-fix.patch b/runtime-arm64-lld-fix.patch new file mode 100644 index 0000000..db6f520 --- /dev/null +++ b/runtime-arm64-lld-fix.patch @@ -0,0 +1,18 @@ +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 +@@ -108,11 +108,8 @@ + fi + + if [[ "$compiler" == "clang" ]]; then +- if 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" +- fi ++ if "$CC" -fuse-ld=lld -Wl,--version >/dev/null 2>&1; then ++ LDFLAGS="-fuse-ld=lld" + fi + fi + |