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

ID 767253
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

fuse-ld

Tells the compiler to use a different linker instead of the default linker, which is ld on Linux and link on Windows.

Syntax

Linux:

-fuse-ld=keyword

Windows:

-fuse-ld=keyword

Arguments

keyword

Tells the compiler which non-default linker to use. Possible values are:

bfd

Tells the compiler to use the bfd linker. This setting is only available for Linux.

gold

Tells the compiler to use the gold linker. This setting is only available for Linux.

lld

Tells the compiler to use the lld linker.

Default

Linux: ld

The compiler uses the ld linker by default.

Windows: link

The compiler uses the link linker by default.

Description

This option tells the compiler to use a different linker instead of the default linker, which is ld on Linux and link on Windows.

On Linux, this option is provided for compatibility with gcc.

NOTE:

On Windows, option /Qipo automatically sets option -fuse-ld=lld.

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