[llvm-branch-commits] [clang] [Driver] Change linker job in Baremetal toolchain object accomodate GCCInstallation.(2/3) (PR #121830)

Garvit Gupta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jan 20 04:56:53 PST 2025


================
@@ -36,6 +36,7 @@ class LLVM_LIBRARY_VISIBILITY BareMetal : public Generic_ELF {
   Tool *buildStaticLibTool() const override;
 
 public:
+  virtual bool isUsingLD() const { return UseLD || GCCInstallation.isValid(); }
----------------
quic-garvgupt wrote:

There was a request in the original PR that there is some downstream toolchain that inherits from Baremetal toolchain and defaults to LLD. Therefore I made this virtual so that it cab be overridden however, in the recent patchset I have removed it since there is no need for it in community and can easily be maintained downstream.

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


More information about the llvm-branch-commits mailing list