We build libc++ and libc++abi with -nodefaultlibs, so -rtlib=compiler-rt has no
effect and results in an 'argument unused during compilation' warning which
breaks the build when using -Werror. We can therefore drop -rtlib=compiler-rt
without any functional change; note that the actual compiler-rt linking is
handled by HandleCompilerRT.
Details
Details
- Reviewers
ldionne EricWF smeenai - Commits
- rCXXA353786: [CMake] Avoid passing -rtlib=compiler-rt when using compiler-rt
rG5300d8411604: [CMake] Avoid passing -rtlib=compiler-rt when using compiler-rt
rCXX353786: [CMake] Avoid passing -rtlib=compiler-rt when using compiler-rt
rL353786: [CMake] Avoid passing -rtlib=compiler-rt when using compiler-rt
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I think the commit message could be clarified a bit. Something like
We build libc++ and libc++abi with -nodefaultlibs, so -rtlib=compiler-rt has no effect and results in an 'argument unused during compilation' warning which breaks the build when using -Werror. We can therefore drop -rtlib=compiler-rt without any functional change; note that the actual compiler-rt linking is handled by HandleCompilerRT.