Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set CI buildtypes to highest opt level possible and set default buildtype to debugoptimized #260

Merged
merged 99 commits into from Mar 10, 2021
Merged
Show file tree
Hide file tree
Changes from 98 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
22e2c97
Set default meson buildtype to debugoptimized
kazarmy Dec 25, 2020
6ab6242
Don't treat warnings as errors for now
kazarmy Dec 25, 2020
1e64357
Merge branch 'dev' into debugoptimized-asan
kazarmy Dec 25, 2020
e7cf433
Don't optimize hexagon_disasm_instruction() if asan
kazarmy Dec 25, 2020
0d9d87c
Test whether disabling _free() in asm test runner solves OpenBSD
kazarmy Dec 26, 2020
ced7e5f
Test whether disabling _free() in asm test runner solves OpenBSD (2nd…
kazarmy Dec 26, 2020
fa4467f
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Dec 26, 2020
86ff11b
Reenable rz_test_asm_test_output_free()
kazarmy Dec 26, 2020
994946d
Use RZ_FREE instead of free in _result_info_free()-related code
kazarmy Dec 26, 2020
a80160e
Enable free(proc) and selectively nullify proc
kazarmy Dec 27, 2020
6a1af99
Do special debug build for Codecov
kazarmy Dec 27, 2020
dcd5e23
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Dec 27, 2020
d7f0ee0
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Dec 28, 2020
b48c93f
Prevent Clang optimizer from taking a negative - positive == negative…
kazarmy Dec 28, 2020
50a44f7
Revert "Do special debug build for Codecov"
kazarmy Dec 29, 2020
185c767
Add -Dbuildtype=debug to codecov build
kazarmy Dec 29, 2020
ada7b18
Add '-O2 -g' to linux-acr-...-tests builds
kazarmy Dec 29, 2020
cf95cb0
Revert all code related to the OpenBSD rz-test uaf bug
kazarmy Dec 29, 2020
33db2cd
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 12, 2021
71d4f2a
Update sdb submodule to 82434290dbb535671354cdc3f96ee3e1a380587f
kazarmy Jan 12, 2021
77aa90e
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 13, 2021
393f5b1
Fix minunit -Wformat-overflow= warning by increasing msg buf size
kazarmy Jan 13, 2021
f45ee4a
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 15, 2021
f54f0a8
#define minunit buf size
kazarmy Jan 15, 2021
41b6bf8
Use snprintf instead in minunit.h
kazarmy Jan 15, 2021
660ac36
Use snprint_mem instead
kazarmy Jan 15, 2021
284195e
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 16, 2021
879d969
Handle always return value of rz_sys_system
kazarmy Jan 16, 2021
cd2bea0
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 17, 2021
dee1b9a
Use rz_sys_xsystem instead
kazarmy Jan 17, 2021
d489a0a
Handle always return value of write, read and freopen
kazarmy Jan 17, 2021
51e0a04
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 18, 2021
d8abe06
Use RZ_LOG_WARN instead
kazarmy Jan 18, 2021
7a9a735
REVERSE THE POLARITY
kazarmy Jan 18, 2021
cb11360
Revert "REVERSE THE POLARITY"
kazarmy Jan 18, 2021
42a4f7e
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 21, 2021
7e1f8c5
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 21, 2021
42b93e1
Fix -Wmaybe-uninitialized warnings
kazarmy Jan 21, 2021
2d6e489
Add fix by clang-format
kazarmy Jan 21, 2021
186a009
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 25, 2021
8ea897a
Suppress -Wunused-result for test/unit/auxiliary code
kazarmy Jan 25, 2021
3239754
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 26, 2021
ab091e3
Fix "‘%s’ directive argument is null" warnings
kazarmy Jan 26, 2021
5d1b082
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 27, 2021
028ac44
Fix agraph.c calloc warning
kazarmy Jan 27, 2021
3b64753
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 28, 2021
ef64aee
Fix strncpy truncation warnings
kazarmy Jan 28, 2021
0165f2c
Merge branch 'dev' into debugoptimized-asan
kazarmy Jan 28, 2021
1b5ccc2
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 28, 2021
12cbb8e
Make sure there is a \0 at buf's end
kazarmy Jan 28, 2021
cd1cff5
Revert "Don't treat warnings as errors for now"
kazarmy Jan 28, 2021
0f4e8ba
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 28, 2021
f1b108e
Don't treat warnings as errors for now
kazarmy Jan 29, 2021
7509161
Fix -Wformat-truncation warnings in asan build
kazarmy Jan 29, 2021
df8aeb2
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Jan 29, 2021
de55a95
Don't evaluate macro parameters multiple times
kazarmy Jan 29, 2021
6de5a23
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Feb 27, 2021
ecf4e7f
Remove --werror for now
kazarmy Feb 27, 2021
a61a607
Add separate Codecov build and remove linux-meson-gcc-build build
kazarmy Feb 27, 2021
6a6db9f
Set test buildtypes to highest optimization level possible
kazarmy Feb 27, 2021
e76f52f
Fix -Wmaybe-uninitialized warning in gcc release build
kazarmy Feb 27, 2021
ccddef9
Fix -Wformat-overflow= warning in gcc release build
kazarmy Feb 27, 2021
06fba52
Loosen fuzz test requirements [revert before merge]
kazarmy Feb 27, 2021
6036105
Run Codecov build only on dev branch
kazarmy Feb 27, 2021
981b4fc
Run asan build with debug-release [probably should be reverted before…
kazarmy Feb 27, 2021
c311633
Try using -Ddebug=true -Doptimization=3 on linux-meson-gcc-tests as well
kazarmy Feb 27, 2021
65d5167
Revert "Run asan build with debug-release [probably should be reverte…
kazarmy Feb 27, 2021
b75e434
Try using -Dbuildtype=debugoptimized on linux-meson-gcc-tests
kazarmy Feb 27, 2021
5e30b54
Revert back to buildtype=release for linux-meson-gcc-tests
kazarmy Feb 27, 2021
862c247
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 2, 2021
e8618bf
Prevent signed int difference overflow in java_switch_op()
kazarmy Mar 2, 2021
bd398e4
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 3, 2021
5f1ecc2
Fix "directive argument is null" warning in asan build
kazarmy Mar 3, 2021
62cd807
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 4, 2021
d966783
Suppress stringop-truncation warning in capstone code
kazarmy Mar 4, 2021
32711de
Add trailing comma
kazarmy Mar 4, 2021
59cd40d
Check for gcc before suppressing
kazarmy Mar 4, 2021
e924748
Fix tcc build
kazarmy Mar 4, 2021
fdcd2e5
Use -Wno-error= instead
kazarmy Mar 4, 2021
964a023
Fix -Wmaybe-uninitialized warning in asan build
kazarmy Mar 4, 2021
9e4c52c
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 8, 2021
451b603
Fix -Wstringop-truncation warnings in asan build in rizin code
kazarmy Mar 8, 2021
1edce52
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 8, 2021
c56883b
Revert "Loosen fuzz test requirements [revert before merge]"
kazarmy Mar 8, 2021
a2bc67a
Revert "Remove --werror for now"
kazarmy Mar 8, 2021
dabc0ab
Enable the capstone builds [revert before merge]
kazarmy Mar 8, 2021
6ab7fc3
Loosen fuzz test requirements [revert before merge]
kazarmy Feb 27, 2021
5f72508
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 9, 2021
92470f4
Set -Wno-error=stringop-truncation for other possible capstone branches
kazarmy Mar 9, 2021
fb83f3e
Remove --werror for capstone-v3 build [revert after merge]
kazarmy Mar 9, 2021
6b6671c
analysis_arm_cs.c: Fix -Wmaybe-uninitialized warning in capstone-v3 b…
kazarmy Mar 9, 2021
7a41ba0
Revert "Remove --werror for capstone-v3 build [revert after merge]"
kazarmy Mar 9, 2021
dbd4480
Revert "Loosen fuzz test requirements [revert before merge]"
kazarmy Mar 9, 2021
99b805e
Revert "Enable the capstone builds [revert before merge]"
kazarmy Mar 9, 2021
2a9bf78
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 9, 2021
e9dc66d
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 9, 2021
13473a3
Use has_argument instead in capstones' meson.build
kazarmy Mar 10, 2021
13b6bfd
Merge branch 'dev' of https://github.com/rizinorg/rizin into debugopt…
kazarmy Mar 10, 2021
2a5d47a
Use has_argument instead in test auxillaries' meson.build
kazarmy Mar 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 18 additions & 16 deletions .github/workflows/ci.yml
Expand Up @@ -52,10 +52,10 @@ jobs:
matrix:
name: [
linux-meson-clang-tests,
linux-meson-gcc-build,
linux-meson-gcc-tests,
macos-meson-clang-tests,
linux-gcc-tests-asan,
linux-gcc-tests-codecov,
capstone-v3,
capstone-next
]
Expand All @@ -65,50 +65,52 @@ jobs:
build_system: meson
compiler: clang
run_tests: true
meson_options: -Dbuildtype=release
enabled: ${{ github.event_name != 'pull_request' && needs.changes.outputs.edited == 'true' }}
timeout: 45
- name: linux-meson-gcc-build
os: ubuntu-20.04
build_system: meson
compiler: gcc
enabled: ${{ github.event_name == 'pull_request' && needs.changes.outputs.edited == 'true' }}
timeout: 45
cflags: '-Wno-cpp'
meson_options: --werror
- name: linux-meson-gcc-tests
os: ubuntu-20.04
build_system: meson
compiler: gcc
run_tests: true
meson_options: -Db_coverage=true -Duse_webui=true --werror
coverage: true
meson_options: -Dbuildtype=release --werror
enabled: ${{ needs.changes.outputs.edited == 'true' }}
timeout: 60
timeout: 45
cflags: '-Wno-cpp'
- name: macos-meson-clang-tests
os: macos-latest
build_system: meson
compiler: clang
run_tests: true
meson_options: -Duse_webui=true
meson_options: -Dbuildtype=release -Duse_webui=true
enabled: ${{ needs.changes.outputs.edited == 'true' }}
timeout: 60
- name: linux-gcc-tests-asan
os: ubuntu-20.04
build_system: meson
compiler: gcc
cflags: '-DRZ_ASSERT_STDOUT=1 -Wno-cpp'
meson_options: -Db_sanitize=address,undefined -Duse_webui=true --werror
meson_options: -Dbuildtype=debugoptimized -Db_sanitize=address,undefined -Duse_webui=true --werror
asan: true
asan_options: 'detect_leaks=0,detect_odr_violation=0,allocator_may_return_null=1'
run_tests: true
enabled: ${{ (github.event_name != 'pull_request' || contains(github.head_ref, 'asan') || contains(github.head_ref, 'import')) && needs.changes.outputs.edited == 'true' }}
timeout: 100
- name: linux-gcc-tests-codecov
os: ubuntu-20.04
build_system: meson
compiler: gcc
run_tests: true
meson_options: -Dbuildtype=debug -Db_coverage=true -Duse_webui=true --werror
coverage: true
enabled: ${{ github.event_name != 'pull_request' && needs.changes.outputs.edited == 'true' }}
timeout: 60
cflags: '-Wno-cpp'
- name: capstone-v3
os: ubuntu-20.04
build_system: meson
compiler: gcc
meson_options: -Duse_capstone_version=v3 --werror
meson_options: -Dbuildtype=release -Duse_capstone_version=v3 --werror
run_tests: false
enabled: ${{ (github.event_name != 'pull_request' || contains(github.head_ref, 'capstone')) && needs.changes.outputs.edited == 'true' }}
timeout: 45
Expand All @@ -117,7 +119,7 @@ jobs:
os: ubuntu-20.04
build_system: meson
compiler: gcc
meson_options: -Duse_capstone_version=next --werror
meson_options: -Dbuildtype=release -Duse_capstone_version=next --werror
run_tests: false
enabled: ${{ (github.event_name != 'pull_request' || contains(github.head_ref, 'capstone')) && needs.changes.outputs.edited == 'true' }}
timeout: 45
Expand Down
8 changes: 7 additions & 1 deletion librz/asm/arch/hexagon/hexagon_disas.c
Expand Up @@ -13,7 +13,13 @@

extern ut32 constant_extender;

int hexagon_disasm_instruction(ut32 hi_u32, HexInsn *hi, ut32 addr) {
#if ASAN
#define NO_OPT_IF_ASAN __attribute__((optimize(0)))
#else
#define NO_OPT_IF_ASAN
#endif

NO_OPT_IF_ASAN int hexagon_disasm_instruction(ut32 hi_u32, HexInsn *hi, ut32 addr) {
// DUPLEXES
if (((hi_u32 >> 14) & 0x3) == 0) {
switch ((((hi_u32 >> 29) & 0xF) << 1) | ((hi_u32 >> 13) & 1)) {
Expand Down
1 change: 1 addition & 0 deletions meson.build
Expand Up @@ -3,6 +3,7 @@ project('rizin', 'c',
license: 'LGPL3',
meson_version: '>=0.55.0',
default_options: [
'buildtype=debugoptimized',
'b_vscrt=from_buildtype',
]
)
Expand Down
42 changes: 24 additions & 18 deletions subprojects/packagefiles/capstone-3.0.5/meson.build
Expand Up @@ -47,29 +47,35 @@ cs_files = [

capstone_includes = [include_directories('include')]

libcapstone_c_args = [
'-DCAPSTONE_X86_ATT_DISABLE_NO',
'-DCAPSTONE_X86_REDUCE_NO',
'-DCAPSTONE_USE_SYS_DYN_MEM',
'-DCAPSTONE_DIET_NO',
'-DCAPSTONE_HAS_ARM',
'-DCAPSTONE_HAS_ARM64',
'-DCAPSTONE_HAS_M68K',
'-DCAPSTONE_HAS_M680X',
'-DCAPSTONE_HAS_MIPS',
'-DCAPSTONE_HAS_POWERPC',
'-DCAPSTONE_HAS_SPARC',
'-DCAPSTONE_HAS_SYSZ',
'-DCAPSTONE_HAS_X86',
'-DCAPSTONE_HAS_XCORE',
'-DCAPSTONE_HAS_TMS320C64X',
]
warn_trunc_flag = '-Wno-error=stringop-truncation'
if meson.get_compiler('c').has_argument(warn_trunc_flag)
libcapstone_c_args += warn_trunc_flag
endif

libcapstone = library('capstone', cs_files,
c_args: [
'-DCAPSTONE_X86_ATT_DISABLE_NO',
'-DCAPSTONE_X86_REDUCE_NO',
'-DCAPSTONE_USE_SYS_DYN_MEM',
'-DCAPSTONE_DIET_NO',
'-DCAPSTONE_HAS_ARM',
'-DCAPSTONE_HAS_ARM64',
'-DCAPSTONE_HAS_M68K',
'-DCAPSTONE_HAS_M680X',
'-DCAPSTONE_HAS_MIPS',
'-DCAPSTONE_HAS_POWERPC',
'-DCAPSTONE_HAS_SPARC',
'-DCAPSTONE_HAS_SYSZ',
'-DCAPSTONE_HAS_X86',
'-DCAPSTONE_HAS_XCORE',
'-DCAPSTONE_HAS_TMS320C64X',
],
c_args: libcapstone_c_args,
include_directories: capstone_includes,
implicit_include_directories: false
)

capstone_dep = declare_dependency(
link_with: libcapstone,
include_directories: capstone_includes
)
)
42 changes: 24 additions & 18 deletions subprojects/packagefiles/capstone-4.0.2/meson.build
Expand Up @@ -57,29 +57,35 @@ cs_files = [

capstone_includes = [include_directories('include'), include_directories('include/capstone')]

libcapstone_c_args = [
'-DCAPSTONE_X86_ATT_DISABLE_NO',
'-DCAPSTONE_X86_REDUCE_NO',
'-DCAPSTONE_USE_SYS_DYN_MEM',
'-DCAPSTONE_DIET_NO',
'-DCAPSTONE_HAS_ARM',
'-DCAPSTONE_HAS_ARM64',
'-DCAPSTONE_HAS_M68K',
'-DCAPSTONE_HAS_M680X',
'-DCAPSTONE_HAS_MIPS',
'-DCAPSTONE_HAS_POWERPC',
'-DCAPSTONE_HAS_SPARC',
'-DCAPSTONE_HAS_SYSZ',
'-DCAPSTONE_HAS_X86',
'-DCAPSTONE_HAS_XCORE',
'-DCAPSTONE_HAS_TMS320C64X',
]
warn_trunc_flag = '-Wno-error=stringop-truncation'
if meson.get_compiler('c').has_argument(warn_trunc_flag)
libcapstone_c_args += warn_trunc_flag
endif

libcapstone = library('capstone', cs_files,
c_args: [
'-DCAPSTONE_X86_ATT_DISABLE_NO',
'-DCAPSTONE_X86_REDUCE_NO',
'-DCAPSTONE_USE_SYS_DYN_MEM',
'-DCAPSTONE_DIET_NO',
'-DCAPSTONE_HAS_ARM',
'-DCAPSTONE_HAS_ARM64',
'-DCAPSTONE_HAS_M68K',
'-DCAPSTONE_HAS_M680X',
'-DCAPSTONE_HAS_MIPS',
'-DCAPSTONE_HAS_POWERPC',
'-DCAPSTONE_HAS_SPARC',
'-DCAPSTONE_HAS_SYSZ',
'-DCAPSTONE_HAS_X86',
'-DCAPSTONE_HAS_XCORE',
'-DCAPSTONE_HAS_TMS320C64X',
],
c_args: libcapstone_c_args,
include_directories: capstone_includes,
implicit_include_directories: false
)

capstone_dep = declare_dependency(
link_with: libcapstone,
include_directories: capstone_includes
)
)
42 changes: 24 additions & 18 deletions subprojects/packagefiles/capstone-bundled/meson.build
Expand Up @@ -57,29 +57,35 @@ cs_files = [

capstone_includes = [include_directories('include'), include_directories('include/capstone')]

libcapstone_c_args = [
'-DCAPSTONE_X86_ATT_DISABLE_NO',
'-DCAPSTONE_X86_REDUCE_NO',
'-DCAPSTONE_USE_SYS_DYN_MEM',
'-DCAPSTONE_DIET_NO',
'-DCAPSTONE_HAS_ARM',
'-DCAPSTONE_HAS_ARM64',
'-DCAPSTONE_HAS_M68K',
'-DCAPSTONE_HAS_M680X',
'-DCAPSTONE_HAS_MIPS',
'-DCAPSTONE_HAS_POWERPC',
'-DCAPSTONE_HAS_SPARC',
'-DCAPSTONE_HAS_SYSZ',
'-DCAPSTONE_HAS_X86',
'-DCAPSTONE_HAS_XCORE',
'-DCAPSTONE_HAS_TMS320C64X',
]
warn_trunc_flag = '-Wno-error=stringop-truncation'
if meson.get_compiler('c').has_argument(warn_trunc_flag)
libcapstone_c_args += warn_trunc_flag
endif

libcapstone = library('capstone', cs_files,
c_args: [
'-DCAPSTONE_X86_ATT_DISABLE_NO',
'-DCAPSTONE_X86_REDUCE_NO',
'-DCAPSTONE_USE_SYS_DYN_MEM',
'-DCAPSTONE_DIET_NO',
'-DCAPSTONE_HAS_ARM',
'-DCAPSTONE_HAS_ARM64',
'-DCAPSTONE_HAS_M68K',
'-DCAPSTONE_HAS_M680X',
'-DCAPSTONE_HAS_MIPS',
'-DCAPSTONE_HAS_POWERPC',
'-DCAPSTONE_HAS_SPARC',
'-DCAPSTONE_HAS_SYSZ',
'-DCAPSTONE_HAS_X86',
'-DCAPSTONE_HAS_XCORE',
'-DCAPSTONE_HAS_TMS320C64X',
],
c_args: libcapstone_c_args,
include_directories: capstone_includes,
implicit_include_directories: false
)

capstone_dep = declare_dependency(
link_with: libcapstone,
include_directories: capstone_includes
)
)
42 changes: 24 additions & 18 deletions subprojects/packagefiles/capstone-next/meson.build
Expand Up @@ -58,29 +58,35 @@ cs_files = [

capstone_includes = [include_directories('include'), include_directories('include/capstone')]

libcapstone_c_args = [
'-DCAPSTONE_X86_ATT_DISABLE_NO',
'-DCAPSTONE_X86_REDUCE_NO',
'-DCAPSTONE_USE_SYS_DYN_MEM',
'-DCAPSTONE_DIET_NO',
'-DCAPSTONE_HAS_ARM',
'-DCAPSTONE_HAS_ARM64',
'-DCAPSTONE_HAS_M68K',
'-DCAPSTONE_HAS_M680X',
'-DCAPSTONE_HAS_MIPS',
'-DCAPSTONE_HAS_POWERPC',
'-DCAPSTONE_HAS_SPARC',
'-DCAPSTONE_HAS_SYSZ',
'-DCAPSTONE_HAS_X86',
'-DCAPSTONE_HAS_XCORE',
'-DCAPSTONE_HAS_TMS320C64X',
]
warn_trunc_flag = '-Wno-error=stringop-truncation'
if meson.get_compiler('c').has_argument(warn_trunc_flag)
libcapstone_c_args += warn_trunc_flag
endif

libcapstone = library('capstone', cs_files,
c_args: [
'-DCAPSTONE_X86_ATT_DISABLE_NO',
'-DCAPSTONE_X86_REDUCE_NO',
'-DCAPSTONE_USE_SYS_DYN_MEM',
'-DCAPSTONE_DIET_NO',
'-DCAPSTONE_HAS_ARM',
'-DCAPSTONE_HAS_ARM64',
'-DCAPSTONE_HAS_M68K',
'-DCAPSTONE_HAS_M680X',
'-DCAPSTONE_HAS_MIPS',
'-DCAPSTONE_HAS_POWERPC',
'-DCAPSTONE_HAS_SPARC',
'-DCAPSTONE_HAS_SYSZ',
'-DCAPSTONE_HAS_X86',
'-DCAPSTONE_HAS_XCORE',
'-DCAPSTONE_HAS_TMS320C64X',
],
c_args: libcapstone_c_args,
include_directories: capstone_includes,
implicit_include_directories: false
)

capstone_dep = declare_dependency(
link_with: libcapstone,
include_directories: capstone_includes
)
)
3 changes: 2 additions & 1 deletion test/unit/auxiliary/meson.build
Expand Up @@ -7,6 +7,7 @@ files = [

foreach file : files
executable(file, '@0@.c'.format(file),
c_args: meson.get_compiler('c').get_id() == 'gcc' ? ['-Wno-unused-result'] : [],
ret2libc marked this conversation as resolved.
Show resolved Hide resolved
install: false
)
endforeach
endforeach