llvm-project
7d8375b8 - [clang][driver] Fix -print-libgcc-file-name on Darwin platforms (#98325)

Commit
1 year ago
[clang][driver] Fix -print-libgcc-file-name on Darwin platforms (#98325) On Darwin, -print-libgcc-file-name was returning a nonsensical result. It would return the name of the library that would be used by the default toolchain implementation, but that was something that didn't exist on Darwin. Fixing this requires initializing the Darwin toolchain before processing `-print-libgcc-file-name`. Previously, the Darwin toolchain would only be initialized when building the jobs for this compilation, which is too late since `-print-libgcc-file-name` requires the toolchain to be initialized in order to provide the right results. rdar://90633749 Co-authored-by: Gabor Horvath <gaborh@apple.com>
Author
Parents
Loading