date
This commit is contained in:
parent
90909f73b3
commit
182a907182
1 changed files with 6 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
# (C) 2018-2023 by Folkert van Heusden
|
# (C) 2018-2024 by Folkert van Heusden
|
||||||
# Released under MIT license
|
# Released under MIT license
|
||||||
|
|
||||||
project(PDP-11)
|
project(PDP-11)
|
||||||
|
@ -6,8 +6,8 @@ cmake_minimum_required(VERSION 3.9)
|
||||||
|
|
||||||
add_compile_options(-Wall -pedantic -Wextra)
|
add_compile_options(-Wall -pedantic -Wextra)
|
||||||
|
|
||||||
add_compile_options(-fsanitize=address)
|
#add_compile_options(-fsanitize=address)
|
||||||
add_link_options(-fsanitize=address)
|
#add_link_options(-fsanitize=address)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||||
|
@ -71,10 +71,9 @@ endif (WIN32)
|
||||||
|
|
||||||
include(CheckIPOSupported)
|
include(CheckIPOSupported)
|
||||||
check_ipo_supported(RESULT supported)
|
check_ipo_supported(RESULT supported)
|
||||||
|
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
||||||
#set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE)
|
||||||
#set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE)
|
#set(CMAKE_BUILD_TYPE Debug)
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
|
||||||
|
|
||||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||||
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue