OSDN Git Service
(root)
/
timidity41
/
timidity41.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1a79f4
)
Enable Spectre mitigations on MSVC
author
Starg
<starg@users.osdn.me>
Sat, 20 Jan 2018 09:18:27 +0000
(18:18 +0900)
committer
Starg
<starg@users.osdn.me>
Sat, 20 Jan 2018 09:42:04 +0000
(18:42 +0900)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
dab561c
..
e5e4678
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-116,7
+116,7
@@
add_definitions(
)
if(MSVC)
- add_compile_options(/W4 /Zi /GS /fp:fast /permissive-)
+ add_compile_options(/W4 /Zi /GS /fp:fast /permissive-
/d2guardspecload
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /std:c++17")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /GL /guard:cf")