[clang] [clang] [Driver] Ensure we error on lto with link.exe and target `*-windows-msvc` on non cl driver modes (PR #109607)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 22 23:11:30 PDT 2024


================
@@ -5,7 +5,7 @@
 // CHECK-COMPILE-ACTIONS: 2: compiler, {1}, ir
 // CHECK-COMPILE-ACTIONS: 3: backend, {2}, lto-bc
 
-// RUN: %clang -ccc-print-phases %s -flto 2> %t
+// RUN: %clang -ccc-print-phases -fuse-ld=lld %s -flto 2> %t
----------------
MaskRay wrote:

This requirement is really non-obvious. The default target triple could be windows-msvc and without `-fuse-ld=lld` there would be an error?

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


More information about the cfe-commits mailing list