[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloading device code (Part 1 of many) (PR #112245)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 14 12:35:50 PDT 2024
================
@@ -6728,7 +6728,10 @@ def fsycl : Flag<["-"], "fsycl">,
def fno_sycl : Flag<["-"], "fno-sycl">,
Visibility<[ClangOption, CLOption]>,
Group<sycl_Group>, HelpText<"Disables SYCL kernels compilation for device">;
-
+def sycl_link : Flag<["--"], "sycl-link">, Flags<[HelpHidden]>,
----------------
jhuber6 wrote:
Why is this necessary? Shouldn't it do this automatically if we pass in `.o` files or use `-Xlinker foo.c`?
https://github.com/llvm/llvm-project/pull/112245
More information about the cfe-commits
mailing list