[libcxx-commits] [clang] [libcxx] [clang][driver] Cleanup UEFI toolchain driver (PR #111473)
Joseph Huber via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Dec 20 11:47:27 PST 2024
================
@@ -35,6 +35,24 @@ UEFI::UEFI(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
Tool *UEFI::buildLinker() const { return new tools::uefi::Linker(*this); }
+void UEFI::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
+ ArgStringList &CC1Args) const {
+ if (DriverArgs.hasArg(options::OPT_nostdinc))
+ return;
+
+ if (!DriverArgs.hasArg(options::OPT_nobuiltininc)) {
+ SmallString<128> Dir(getDriver().ResourceDir);
+ llvm::sys::path::append(Dir, "include");
+ addSystemInclude(DriverArgs, CC1Args, Dir.str());
----------------
jhuber6 wrote:
Should be fine so long as it includes `lib/<triple/` and `lib/clang/20/lib/<triple>`. Do we have an existing clang driver UEFI target test?
https://github.com/llvm/llvm-project/pull/111473
More information about the libcxx-commits
mailing list