Browse Source
Merge pull request #7007 from FernandoS27/intel-options
Build System: Build with JCC Erratum Mitigation
pull/15/merge
Morph
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/CMakeLists.txt
|
|
@ -44,6 +44,7 @@ if (MSVC) |
|
|
/Zc:externConstexpr |
|
|
/Zc:externConstexpr |
|
|
/Zc:inline |
|
|
/Zc:inline |
|
|
/Zc:throwingNew |
|
|
/Zc:throwingNew |
|
|
|
|
|
/GT |
|
|
|
|
|
|
|
|
# External headers diagnostics |
|
|
# External headers diagnostics |
|
|
/experimental:external # Enables the external headers options. This option isn't required in Visual Studio 2019 version 16.10 and later |
|
|
/experimental:external # Enables the external headers options. This option isn't required in Visual Studio 2019 version 16.10 and later |
|
|
@ -69,6 +70,10 @@ if (MSVC) |
|
|
/we5038 # data member 'member1' will be initialized after data member 'member2' |
|
|
/we5038 # data member 'member1' will be initialized after data member 'member2' |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if (ARCHITECTURE_x86_64) |
|
|
|
|
|
add_compile_options(/QIntel-jcc-erratum) |
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
# /GS- - No stack buffer overflow checks |
|
|
# /GS- - No stack buffer overflow checks |
|
|
add_compile_options("$<$<CONFIG:Release>:/GS->") |
|
|
add_compile_options("$<$<CONFIG:Release>:/GS->") |
|
|
|
|
|
|
|
|
|