mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
MSVC: Don't use GCC -O/-g flags. #3267
This commit is contained in:
committed by
Justin M. Keyes
parent
acdac914d5
commit
9bc1b78058
@@ -161,7 +161,7 @@ endif()
|
|||||||
if(HAS_OG_FLAG)
|
if(HAS_OG_FLAG)
|
||||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-Og -g"
|
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-Og -g"
|
||||||
CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE)
|
CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE)
|
||||||
else()
|
elseif(NOT MSVC)
|
||||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g"
|
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g"
|
||||||
CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE)
|
CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user