Skip to main content

removeunreferencedcodedata

Sets the RemoveUnreferencedCodeData property for a configuration or all configurations within a project or workspace, adding or removing the /Zc:inline[-] build option.

/Zc:inline (Remove unreferenced COMDAT)

If this property is unset, it defaults to true in Visual Studio.

removeunreferencedcodedata ("value")

Parameters​

value is one of:

ValueDescription
OnEnable removing of unreferenced COMDATs.
OffDisable removing of unreferenced COMDATs.

Applies To​

Workspace and project configurations.

Availability​

Premake 5.0.0-alpha16 or later in Visual Studio 2010+.

Examples​

RemoveUnreferencedCodeData "Off"