Browse Source

don't omit frame pointer on debug builds, add drmingw dependency

export_samplerate
Alexandros Theodotou 3 years ago
parent
commit
017312ac9e
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 21
      meson.build
  2. 3
      subprojects/drmingw.wrap

21
meson.build

@ -374,8 +374,6 @@ if get_option ('extra_optimizations') @@ -374,8 +374,6 @@ if get_option ('extra_optimizations')
if host_machine.cpu() == 'x86_64'
test_cflags += [
'-ffast-math',
# this may break the backtrace
'-fomit-frame-pointer',
'-fstrength-reduce',
'-DPIC',
'-fdata-sections',
@ -387,6 +385,16 @@ if get_option ('extra_optimizations') @@ -387,6 +385,16 @@ if get_option ('extra_optimizations')
#'-fvisibility=hidden',
]
endif
if get_option ('extra_debug_info') or get_option ('debug') or get_option ('buildtype').contains ('debug')
test_cflags += [
'-fno-omit-frame-pointer',
]
else
# note: this may break the backtrace
test_cflags += [
'-fomit-frame-pointer',
]
endif
endif
if get_option ('extra_debug_info')
@ -830,8 +838,13 @@ if all_static @@ -830,8 +838,13 @@ if all_static
endif
if os_windows
zrythm_deps += cc.find_library (
'dbghelp', static: all_static)
#zrythm_deps += cc.find_library (
#'dbghelp', static: all_static)
drmingw_subproject = cmake.subproject (
'drmingw', options: cmake_opts)
drmingw_dep = drmingw_subproject.dependency (
'drmingw')
zrythm_deps += drmingw_dep
zrythm_deps += jack_dep.partial_dependency (
link_args: false, links: false)
else

3
subprojects/drmingw.wrap

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
[wrap-git]
url = https://github.com/jrfonseca/drmingw
revision = 0ec7a6cb768b185271b0015f5dfaef1e44c88849
Loading…
Cancel
Save