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;
24
24
using namespace llvm ::opt;
25
25
26
26
UEFI::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
+ }
28
30
29
31
Tool *UEFI::buildLinker () const { return new tools::uefi::Linker (*this ); }
30
32
Original file line number Diff line number Diff line change 101
101
// RUN: | FileCheck %s --check-prefix CHECK-WINDOWS-MSVC-BFD
102
102
// CHECK-WINDOWS-MSVC-BFD: "{{.*}}ld.bfd"
103
103
// 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 12
12
// CHECK-SAME: "/entry:EfiMain"
13
13
// CHECK-SAME: "/tsaware:no"
14
14
// 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