aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2025-05-04 10:26:01 +0200
committerGitHub <noreply@github.com>2025-05-04 10:26:01 +0200
commit4e81ee4a158b7c8e4b468c9370abb042a59129b6 (patch)
tree48fa2000a33fb51e4d257aefe06510ef6915bba2 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parentf35e172833f1bdd502e2847e13c3a58430bc654b (diff)
downloadllvm-4e81ee4a158b7c8e4b468c9370abb042a59129b6.zip
llvm-4e81ee4a158b7c8e4b468c9370abb042a59129b6.tar.gz
llvm-4e81ee4a158b7c8e4b468c9370abb042a59129b6.tar.bz2
[Driver] Use AddRunTimeLibs on Solaris (#137596)
When linking `libomp.so` on Solaris, I encountered ``` clang: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument] ``` This happens because `Solaris.cpp` (`solaris::Linker::ConstructJob`) links `-lgcc_s` and `-lgcc` on its own instead of using the common `CommonArgs.cpp` (`tools::AddRunTimeLibs`) which handles `-static-libgcc` out of the box. This patch switches to `AddRunTimeLibs` and adds a test for `-static-libgcc` handling. In `solaris-ld.c`, a few tests had to be adjusted because `-lgcc` is now linked before `-lgcc_s`. Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions