Skip to content

Commit

Permalink
Removed optimization flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Hofmann committed Sep 24, 2019
1 parent 3aa9d09 commit 158a024
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ endif()
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
message(STATUS "No MSVC compiler in use")
set(CMAKE_CXX_FLAGS "-Wall -Wparentheses -Winline -Wbad-function-cast -Wdisabled-optimization -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
else()
message(STATUS "MSVC compiler in use")
set(CMAKE_CXX_FLAGS "/Wall /W2 /O2")
set(CMAKE_CXX_FLAGS "/Wall /W2")
endif()

add_compile_definitions(NAPI_CPP_EXCEPTIONS)
Expand Down

0 comments on commit 158a024

Please sign in to comment.