[clang] [clang-cl] test that `-Xlinker` works, update supported options docs (PR #187395)

Lucas Colley via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 19 04:09:02 PDT 2026


================
@@ -74,3 +74,8 @@
 
 // RUN: %clang_cl --target=x86_64-unknown-windows-msvc /Tc%s -flto -fuse-ld=lld -### -fprofile-sample-use=%S/Inputs/file.prof 2>&1 | FileCheck -check-prefix=CHECK-SAMPLE-PROFILE %s
 // CHECK-SAMPLE-PROFILE: "-lto-sample-profile:{{.*}}/file.prof"
+
+// RUN: %clang_cl -fuse-ld=lld -Xlinker --version -### 2>&1 \
+// RUN: | FileCheck %s --check-prefix=XLINKER --implicit-check-not="warning:"
+
+// XLINKER: TODO
----------------
lucascolley wrote:

no access to a windows machine right now to check the expected output here

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


More information about the cfe-commits mailing list