In this example, the compiler recognizes that
is a library that should be linked with
, so it does not need to follow the
option on the command line. The compiler does not recognize
, so the
option is used to direct the option to the linking phase.
On C++, you can use the
option to pass options to various tools, including the linker.
on C++ to pass options to the linker.
Linker options do not work for SYCL kernels, but they do work for host code (including pragmas for linker options).