From 6277bc86cfc092fdff3c436d944fa7dedf33b4a8 Mon Sep 17 00:00:00 2001 From: water Date: Sun, 4 Oct 2020 17:28:45 -0400 Subject: [PATCH] try building goos with optimizations on --- common/goos/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/goos/CMakeLists.txt b/common/goos/CMakeLists.txt index 2c36a8302f..cc8c4fe041 100644 --- a/common/goos/CMakeLists.txt +++ b/common/goos/CMakeLists.txt @@ -1,2 +1,9 @@ + +IF (WIN32) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2") +ELSE() +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3") +ENDIF() + add_library(goos SHARED Object.cpp TextDB.cpp Reader.cpp Interpreter.cpp InterpreterEval.cpp PrettyPrinter.cpp) target_link_libraries(goos common_util fmt) \ No newline at end of file