Wl, link

Passes options to the linker for processing.

Syntax

Linux:

-Wl,option1[,option2,...]

Windows:

/link

Arguments

option

Is a linker option. This option is not processed by the driver and is directly passed to the linker.

Default

OFF

No options are passed to the linker.

Description

Option -Wl passes one or more options to the linker for processing. If the linker is not invoked, these options are ignored.

All options that appear following /link are passed directly to the linker.

The -Wl option is equivalent to specifying option -Qoption,link,options.

Note

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

None

Alternate Options

None

See Also