Gy

Separates functions into COMDATs for the linker. This content is specific to C++; it does not apply to DPC++. This is a deprecated option. There is no replacement option.

Syntax

Linux:

None

Windows:

/Gy

/Gy-

Arguments

None

Default

ON

The compiler separates functions into COMDATs.

Description

This option tells the compiler to separate functions into COMDATs for the linker.

IDE Equivalent

Visual Studio: Code Generation > Enable Function-Level Linking

Eclipse: None

Alternate Options

None