aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-02-26 09:55:02 -0800
committerGitHub <noreply@github.com>2024-02-26 09:55:02 -0800
commitb876596a76cdc183439b36455d26883b67f8ee51 (patch)
tree132c1b557f84bdfad58d77d866a25ce3eb53b0cf /llvm/lib/IR/Module.cpp
parent695b630ae16a1b243d9c72cc275b00cf0c8af2df (diff)
downloadllvm-b876596a76cdc183439b36455d26883b67f8ee51.zip
llvm-b876596a76cdc183439b36455d26883b67f8ee51.tar.gz
llvm-b876596a76cdc183439b36455d26883b67f8ee51.tar.bz2
[Driver] Improve error when a compiler-rt library is not found (#81037)
BSD, Linux, and z/OS enable `LLVM_ENABLE_PER_TARGET_RUNTIME_DIR` by default. When a compiler-rt library is not found, we currently report an incorrect filename `libclang_rt.XXX-$arch.a` ``` % /tmp/Debug/bin/clang++ a.cc -fsanitize=address -o a ld.lld: error: cannot open /tmp/Debug/lib/clang/19/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory clang++: error: linker command failed with exit code 1 (use -v to see invocation) ``` With this change, we will correctly report: ``` % /tmp/Debug/bin/clang++ a.cc -fsanitize=address -o a ld.lld: error: cannot open /tmp/Debug/lib/clang/19/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a: No such file or directory clang++: error: linker command failed with exit code 1 (use -v to see invocation) ``` Link: https://discourse.llvm.org/t/runtime-directory-fallback/76860
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions