Compare commits

..

2 Commits

Author SHA1 Message Date
82bad550e5 CMakeLists.txt: fixes 2024-10-13 23:43:00 +03:00
19b9812b3e /bin/twn: load symbols from libgame.so 2024-10-13 22:51:48 +03:00
2 changed files with 4 additions and 4 deletions

View File

@ -9,11 +9,11 @@ if(NOT EMSCRIPTEN)
endif() endif()
# CMake actually has no default configuration and it's toolchain file dependent, set debug if not specified # CMake actually has no default configuration and it's toolchain file dependent, set debug if not specified
if(NOT CMAKE_BUILD_TYPE) if(NOT DEFINED CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
endif() endif()
if(NOT TWN_SANITIZE AND CMAKE_BUILD_TYPE MATCHES Debug) if(NOT DEFINED TWN_SANITIZE AND CMAKE_BUILD_TYPE MATCHES Debug)
set(TWN_SANITIZE ON) set(TWN_SANITIZE ON)
endif() endif()
@ -183,7 +183,7 @@ function(give_options_without_warnings target)
$<$<CONFIG:Release>:${BUILD_FLAGS_RELEASE}> $<$<CONFIG:Release>:${BUILD_FLAGS_RELEASE}>
$<$<CONFIG:Debug>:${BUILD_FLAGS_DEBUG}> $<$<CONFIG:Debug>:${BUILD_FLAGS_DEBUG}>
-Bsymbolic-functions -Bsymbolic-functions
-Wl,--hash-style=gnu) $<$<BOOL:${LINUX}>:-Wl,--hash-style=gnu>)
target_compile_definitions(${target} PRIVATE target_compile_definitions(${target} PRIVATE
$<$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>:TWN_FEATURE_DYNLIB_GAME> $<$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>:TWN_FEATURE_DYNLIB_GAME>

View File

@ -16,7 +16,7 @@ case "$1" in
;; ;;
gdb ) unset DEBUGINFOD_URLS gdb ) unset DEBUGINFOD_URLS
$0 build && gdb -ex run --args "$(basename $PWD)" "${@:2}" $0 build && gdb --se=libgame.so -ex run --args "$(basename $PWD)" "${@:2}"
;; ;;
apitrace ) case "$2" in apitrace ) case "$2" in