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

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 20 19:26:34 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'
----------------
jinge90 wrote:

Hi, @srividya-sundaram 
clang and clangxx driver supports this option even without this PR, I add corresponding test to cover clang/clangxx driver to align with other tests in clang/test/Driver/sycl.c.
Thanks very much. 

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


More information about the cfe-commits mailing list