Skip to content

Commit

Permalink
meson: add more debug opts for debug build [#248]
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Mar 1, 2024
1 parent f0c415c commit fae984d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fdpp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,19 @@ CPPFILES = ['objhlp.cpp', 'ctors.cpp', 'farhlp.cpp', 'objtrace.cpp']
hdr = ['src', 'hdr', '.', rel_inc]
incdir2 = include_directories(hdr)
CLANG_VER = meson.get_compiler('cpp').version().split('.')[0]
if get_option('buildtype').startswith('debug')
DEBUG_OPTS = ['-DFDPP_DEBUG', '-DEXTRA_DEBUG', '-fdebug-macro']
else
DEBUG_OPTS = []
endif
LIBFDPP = shared_library('fdpp', [ccfiles, ppccf, FDPP_CCFILES, CPPFILES],
include_directories: incdir2,
version: FVER,
sources: [gad, pac, pap, tc, ta],
cpp_args: ['-DFDPP', '-DDEBUG', '-DWITHFAT32', '-DCLANG_VER=' + CLANG_VER,
'-fno-threadsafe-statics',
'-Werror=packed-non-pod', '-Wno-unknown-warning-option',
'-Wno-format-invalid-specifier', '-Wno-c99-designator'
'-Wno-format-invalid-specifier', '-Wno-c99-designator', DEBUG_OPTS
],
link_args: ['-Wl,-Bsymbolic'],
install: true,
Expand Down

0 comments on commit fae984d

Please sign in to comment.