From 10785bd1cc31091efde02b86795ff20f47bf5fed Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 19 Jun 2018 18:04:10 +0200 Subject: Better compiler flags, Release build per default Signed-off-by: Clifford Wolf --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f3c6183..bd45dc78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,8 @@ project(nextpnr) # List of families to build set(FAMILIES dummy ice40) set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_FLAGS_DEBUG "-Wall") -set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O3 -g") +set(CMAKE_CXX_FLAGS_DEBUG "-Wall -fPIC -ggdb") +set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -O3 -g") set(CMAKE_DEFIN) # List of Boost libraries to include set(boost_libs filesystem thread program_options) @@ -78,7 +78,7 @@ include_directories(common/ gui/ frontend/json ${Boost_INCLUDE_DIRS} ${PYTHON_IN aux_source_directory(common/ COMMON_SRC_FILES) aux_source_directory(frontend/json/ JSON_PARSER_FILES) set(COMMON_FILES ${COMMON_SRC_FILES} ${JSON_PARSER_FILES}) -set(CMAKE_BUILD_TYPE Debug) +set(CMAKE_BUILD_TYPE Release) if(MINGW) add_definitions("-Wa,-mbig-obj") -- cgit v1.2.3