Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 6/24/2024
Public
Document Table of Contents

fsycl-host-compiler-options

Passes options to the compiler specified by option fsycl-host-compiler.

Syntax

Linux:

-fsycl-host-compiler-options="opts"

Windows:

-fsycl-host-compiler-options="opts"

Arguments

opts

Is a string of compatible compiler options to be passed. The string must appear within quotes.

If there is more than one compiler option, a space must appear between each option name.

Default

OFF

No options are passed to the compiler specified by -fsycl-host-compiler.

NOTE:

If -fsycl-host-compiler=cl is specified, the host compilation will be performed by the Microsoft* __cplusplus preprocessor macro, which depends on the setting of option /Qstd (or MSVC-compatible option /std). In this case, the default is /Zc:__cplusplus.

To override this default, specify option /fsycl-host-compiler-options=/Zc:cplusplus-. For more information about macro /Zc:__cplusplus, see the Microsoft documentation.

Description

This option tells the compiler to pass options to the compiler specified by option fsycl-host-compiler. The options must be compatible with the compiler specified by fsycl-host-compiler.

NOTE:

Specifying any kind of phase limiting options (such as -c, -E, or -S) may interfere with the expected output set during the host compilation. This can cause undefined behavior.

NOTE:

When using this option, you must also specify option -fsycl.

For information about available SYCL drivers, refer to Invoke the Compiler.

IDE Equivalent

None

Alternate Options

None

See Also