[clang] [Clang][Driver] Enable offloadlib option for clang-cl (PR #162980)

Srividya Sundaram via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 08:11:50 PDT 2025


================
@@ -25,3 +25,6 @@
 // RUN: %clang_cl -### -fsycl -- %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
 
 // DEFAULT: "-sycl-std=2020"
+
+// RUN: %clang_cl -### -fsycl -sycl-std=2017 --no-offloadlib -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-NO-OFFLOADLIB
+// CHECK-NO-OFFLOADLIB-NOT: warning: unknown argument ignored in clang-cl: '--no-offloadlib'
----------------
srividya-sundaram wrote:

I probably missed, but is there a corresponding test for clang driver as well?

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


More information about the cfe-commits mailing list