diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-19 18:04:10 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-19 18:04:10 +0200 |
commit | 10785bd1cc31091efde02b86795ff20f47bf5fed (patch) | |
tree | 175467290d34427b54cedae292c403c5d7b61463 | |
parent | 962307d32dbd002951cfdb72c0d22ef7e46dcd0d (diff) | |
download | nextpnr-10785bd1cc31091efde02b86795ff20f47bf5fed.tar.gz nextpnr-10785bd1cc31091efde02b86795ff20f47bf5fed.tar.bz2 nextpnr-10785bd1cc31091efde02b86795ff20f47bf5fed.zip |
Better compiler flags, Release build per default
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r-- | CMakeLists.txt | 6 |
1 files 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") |