diff options
author | Gábor Horváth <xazax.hun@gmail.com> | 2024-07-19 05:24:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 13:24:38 +0100 |
commit | 7d8375b86ee490acafb4254603ccd4edc2a58256 (patch) | |
tree | b826b9133e3c10b8b0961a9f364662bc34de1104 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 7122b70cfc8e23a069410215c363da76d842bda4 (diff) | |
download | llvm-7d8375b86ee490acafb4254603ccd4edc2a58256.zip llvm-7d8375b86ee490acafb4254603ccd4edc2a58256.tar.gz llvm-7d8375b86ee490acafb4254603ccd4edc2a58256.tar.bz2 |
[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>
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions