[clang] Fix --print-libgcc-file-name on Darwin platforms (PR #98325)
Louis Dionne via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 07:40:51 PDT 2024
================
@@ -223,6 +223,11 @@ class LLVM_LIBRARY_VISIBILITY MachO : public ToolChain {
// There aren't any profiling libs for embedded targets currently.
}
+ // Return the full path of the compiler-rt library on a Darwin MachO system.
+ // Those are under <resourcedir>/lib/darwin/<...>(.dylib|.a).
+ std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
----------------
ldionne wrote:
What is the difference between the MachO `getCompilerRT` and the Darwin one? Probably worth having a sentence or two to make it clear what the difference is!
https://github.com/llvm/llvm-project/pull/98325
More information about the cfe-commits
mailing list