-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1606 from withmorten/master
add RemoveUnreferencedCodeData option to disable /Zc:inline
- Loading branch information
Showing
5 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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)](https://docs.microsoft.com/en-us/cpp/build/reference/zc-inline-remove-unreferenced-comdat?view=msvc-160) | ||
|
||
If this property is unset, it defaults to `true` in Visual Studio. | ||
|
||
```lua | ||
removeunreferencedcodedata ("value") | ||
``` | ||
|
||
### Parameters ### | ||
|
||
`value` one of: | ||
* `on` - Enables `RemoveUnreferencedCodeData`. | ||
* `off` - Disables `RemoveUnreferencedCodeData`. | ||
|
||
### Applies To ### | ||
|
||
Workspaces and projects. | ||
|
||
### Availability ### | ||
|
||
Premake 5.0 alpha 16 or later. | ||
|
||
### Examples ### | ||
|
||
```lua | ||
RemoveUnreferencedCodeData "Off" | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters