[clang] [clang][driver] Fix -print-libgcc-file-name on Darwin platforms (PR #98325)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 01:57:30 PDT 2024


================
@@ -356,6 +363,12 @@ class LLVM_LIBRARY_VISIBILITY Darwin : public MachO {
   void addProfileRTLibs(const llvm::opt::ArgList &Args,
                         llvm::opt::ArgStringList &CmdArgs) const override;
 
+  // Return the full path of the compiler-rt library on a Darwin MachO system.
+  // Those are under <resourcedir>/lib/darwin/<...>(.dylib|.a).
----------------
Xazax-hun wrote:

While `-print-libgcc-file-name` can only output the `.a` version, there are other callers of this API that query the dylib. 

https://github.com/llvm/llvm-project/pull/98325


More information about the cfe-commits mailing list