[clang] [Driver] Add toolchain for X86_64 UEFI target (PR #76838)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 19 11:26:53 PDT 2024


================
@@ -0,0 +1,14 @@
+// RUN: %clang_cl -### %s --target=x86_64-unknown-uefi \
+// RUN:     --sysroot=%S/platform -fuse-ld=lld -g 2>&1 \
+// RUN:     | FileCheck -check-prefixes=CHECK %s
+// CHECK: "-cc1"
+// CHECK-SAME: "-triple" "x86_64-unknown-uefi"
+// CHECK-SAME: "-mrelocation-model" "pic" "-pic-level" "2"
+// CHECK-SAME: "-mframe-pointer=all"
+// CHECK-NEXT: "-nologo"
+// CHECK-SAME: "-subsystem:efi_application"
+// CHECK-SAME: "-entry:EfiMain"
+// CHECK-SAME: "-tsaware:no"
+// CHECK-SAME: "-dll"
+// CHECK-SAME: "-debug"
+
----------------
MaskRay wrote:

delete trailing blank line

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


More information about the cfe-commits mailing list