no wrapp printf() and perror() for xce_test and lib tests

This commit is contained in:
Rongsong Shen 2025-11-18 11:59:51 +08:00
parent 8f796b3109
commit e3946383f4
2 changed files with 4 additions and 2 deletions

View file

@ -34,6 +34,7 @@ controller = executable('xce_controller',
controller_src,
include_directories: incdir,
dependencies: controller_deps,
link_args: wrap_link_args,
install: true)
xce_test_src = [ 'testsuite/test.c']

View file

@ -22,8 +22,9 @@ add_project_arguments('-DVERSION_COMMIT_ID='+get_option('commit_id'), language:
c_compiler_id = meson.get_compiler('c').get_id()
if c_compiler_id == 'gcc' or c_compiler_id == 'clang'
add_project_link_arguments('-Wl,--wrap=printf', language:'c')
add_project_link_arguments('-Wl,--wrap=perror', language: 'c')
wrap_link_args = ['-Wl,--wrap=printf', '-Wl,--wrap=perror']
else
wrap_link_args = []
endif
include_dir = include_directories('include', 'include/xce')