Tweaking
This commit is contained in:
parent
546c935cf2
commit
3c1ce804a0
@ -115,15 +115,15 @@ set(COMPILE_FLAGS
|
||||
-Wpedantic
|
||||
# -Wpadded
|
||||
-pedantic
|
||||
# -ffunction-sections
|
||||
# -fdata-sections
|
||||
-ffunction-sections
|
||||
-fdata-sections
|
||||
-fuse-ld=gold
|
||||
-funroll-loops
|
||||
-fdevirtualize-at-ltrans
|
||||
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
|
||||
)
|
||||
set(LINKER_OPTIONS
|
||||
-Wl,--sort-common,--as-needed#[[,--gc-sections,--strip-all]]
|
||||
-Wl,--sort-common,--as-needed,--gc-sections,--strip-all
|
||||
-fuse-ld=gold
|
||||
-fdevirtualize-at-ltrans
|
||||
)
|
||||
@ -143,6 +143,9 @@ set_target_properties(BillySheet spdlog PROPERTIES
|
||||
INTERPROCEDURAL_OPTIMIZATION ON
|
||||
# UNITY_BUILD ON
|
||||
)
|
||||
|
||||
set_target_properties(spdlog PROPERTIES UNITY_BUILD ON)
|
||||
|
||||
set_target_properties(glfw PROPERTIES
|
||||
C_STANDARD 11
|
||||
C_STANDARD_REQUIRED ON
|
||||
@ -159,6 +162,14 @@ target_compile_definitions(BillySheet PRIVATE
|
||||
$<$<CONFIG:Debug>:SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG>
|
||||
$<$<CONFIG:Release>:SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_ERROR>)
|
||||
|
||||
target_compile_definitions(spdlog PRIVATE
|
||||
$<$<CONFIG:Debug>:_GLIBCXX_DEBUG>
|
||||
$<$<CONFIG:Debug>:SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG>
|
||||
$<$<CONFIG:Release>:SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_ERROR>)
|
||||
|
||||
target_compile_definitions(glfw PRIVATE
|
||||
$<$<CONFIG:Debug>:_GLIBCXX_DEBUG>)
|
||||
|
||||
target_compile_options(spdlog PRIVATE ${COMPILE_FLAGS})
|
||||
target_compile_options(glfw PRIVATE ${COMPILE_FLAGS})
|
||||
target_compile_options(BillySheet PRIVATE ${COMPILE_FLAGS})
|
||||
|
Loading…
Reference in New Issue
Block a user