mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-17 20:09:16 +00:00
Add -fno-omit-frame-pointer for perf.
This commit is contained in:
parent
e0d60b0e2b
commit
f4e6e1861f
|
@ -418,8 +418,8 @@ if(NOT WIN32)
|
|||
|
||||
if(PROFILER STREQUAL "perf")
|
||||
MESSAGE("Profiler is perf")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ggdb ${EXTRA_FLAGS_CONFIG}" CACHE STRING "Flags for profiling with perf" FORCE)
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -ggdb ${EXTRA_FLAGS_CONFIG}" CACHE STRING "Flags for profiling with perf" FORCE)
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ggdb -fno-omit-frame-pointer ${EXTRA_FLAGS_CONFIG}" CACHE STRING "Flags for profiling with perf" FORCE)
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -ggdb -fno-omit-frame-pointer ${EXTRA_FLAGS_CONFIG}" CACHE STRING "Flags for profiling with perf" FORCE)
|
||||
endif()
|
||||
# #
|
||||
# End setting profiler build options
|
||||
|
|
|
@ -570,7 +570,7 @@ for env in [test_env, client_env, env]:
|
|||
rel_link_flags += " -Wl,--no-as-needed,-lprofiler"
|
||||
|
||||
if env["profiler"] == "perf":
|
||||
rel_comp_flags += " -ggdb"
|
||||
rel_comp_flags += " -ggdb -fno-omit-frame-pointer"
|
||||
rel_link_flags += ""
|
||||
|
||||
# use the arch if provided, or if on Windows and no arch was passed in then default to pentiumpro
|
||||
|
|
Loading…
Reference in New Issue
Block a user