File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ using namespace clang;
2424using namespace llvm ::opt;
2525
2626UEFI::UEFI (const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
27- : ToolChain(D, Triple, Args) {}
27+ : ToolChain(D, Triple, Args) {
28+ getProgramPaths ().push_back (getDriver ().Dir );
29+ }
2830
2931Tool *UEFI::buildLinker () const { return new tools::uefi::Linker (*this ); }
3032
Original file line number Diff line number Diff line change 101101// RUN: | FileCheck %s --check-prefix CHECK-WINDOWS-MSVC-BFD
102102// CHECK-WINDOWS-MSVC-BFD: "{{.*}}ld.bfd"
103103// CHECK-WINDOWS-MSVC-BFD-SAME: "-o"
104+
105+ // RUN: %clang %s -### -fuse-ld=lld \
106+ // RUN: --target=x86_64-unknown-uefi 2>&1 \
107+ // RUN: | FileCheck %s --check-prefix CHECK-UEFI-LLD-LINK
108+ // CHECK-UEFI-LLD-LINK: "{{.*}}lld-link
Original file line number Diff line number Diff line change 1212// CHECK-SAME: "/entry:EfiMain"
1313// CHECK-SAME: "/tsaware:no"
1414// CHECK-SAME: "/debug"
15+
16+ // RUN: %clang -### --target=x86_64-unknown-uefi -print-search-dirs 2>&1 \
17+ // RUN: | FileCheck -check-prefixes=PROGPATH %s
18+ // PROGPATH: InstalledDir: [[DRIVER_INSTALLED_DIR:.*]]
19+ // PROGPATH: programs: =[[DRIVER_INSTALLED_DIR]]
You can’t perform that action at this time.
0 commit comments