File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
include/LuaParser/LuaAstNode Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
1414endif ()
1515
1616if (CMAKE_BUILD_TYPE STREQUAL "Release" )
17- set (CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O3" )
18- set (CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3" )
17+ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
18+ set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG -O2" )
19+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG -O2" )
20+ endif ()
1921endif ()
2022
2123add_subdirectory (LuaParser)
Original file line number Diff line number Diff line change @@ -109,4 +109,4 @@ enum class LuaAstNodeType
109109
110110
111111#define LUA_AST (ASTClass )\
112- inline static constexpr LuaAstNodeType ASTIndex = LuaAstNodeType::ASTClass
112+ inline static constexpr LuaAstNodeType ASTIndex = LuaAstNodeType::ASTClass
You can’t perform that action at this time.
0 commit comments