diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-29 21:22:37 -0400 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-07-30 12:28:43 -0700 |
| commit | 03a8f35031c9ae0ded162f8b228c5b3f04643632 (patch) | |
| tree | 08a5a9c5fb328fdab899a927808488f2280cf4de /test cases/nasm | |
| parent | a05b790d6600586449471d3fe957442896dec2a7 (diff) | |
| download | meson-03a8f35031c9ae0ded162f8b228c5b3f04643632.tar.gz | |
tests: nasm: make it easier to debug generator() style build
By default, we build with debug info which can be useful for
investigating why a test segfaults instead of either passing or failing.
The nasm language hooks this up, but using nasm as a generator program
does not.
Bug: https://bugs.gentoo.org/936911
Diffstat (limited to 'test cases/nasm')
| -rw-r--r-- | test cases/nasm/1 configure file/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/nasm/1 configure file/meson.build b/test cases/nasm/1 configure file/meson.build index fac46a687..abe7bb30f 100644 --- a/test cases/nasm/1 configure file/meson.build +++ b/test cases/nasm/1 configure file/meson.build @@ -24,10 +24,16 @@ conf = configuration_data() conf.set('HELLO', 0) +debug_nasm = [] +if get_option('debug') + debug_nasm = ['-g'] +endif + asm_gen = generator(nasm, output : '@BASENAME@.o', arguments : [ '-f', asm_format, + debug_nasm, '-i', meson.current_source_dir() + '/', '-i', join_paths(meson.current_source_dir(), ''), '-P', join_paths(meson.current_build_dir(), 'config.asm'), |
