mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
[CMAKE] Remove "/Gy" option from ML
Reason: VS solution builds pass the compiler options to the assembler. These are usually ignored and result in a warning only, but ML of the latest VS supports /Gy (function level linking), but that requires all functions to be declared with "PROC" and otherwise results in an error.
This commit is contained in:
parent
72081168fb
commit
e3f204e228
1 changed files with 3 additions and 2 deletions
|
@ -22,8 +22,9 @@ endif()
|
|||
# helper macros. Note also that GCC builds use string pooling by default.
|
||||
add_compile_options(/GF)
|
||||
|
||||
# Enable function level linking and comdat folding
|
||||
add_compile_options(/Gy)
|
||||
# Enable function level linking and comdat folding (only C/C++, not ASM!)
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/Gy>)
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:C>:/Gy>)
|
||||
add_link_options(/OPT:REF /OPT:ICF)
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
|
|
Loading…
Reference in a new issue