diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2024-01-09 20:37:15 -0500 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-01-25 11:06:56 -0800 |
| commit | d7bf365acdadf6bb5a456bbe405132cd17c3e5af (patch) | |
| tree | 0b8a8c506ab0dcca83cd914e15fe22ecffd526ed /test cases/common/259 preprocess/meson.build | |
| parent | a9f9f034905459bed628d886c3315ded162a9789 (diff) | |
| download | meson-d7bf365acdadf6bb5a456bbe405132cd17c3e5af.tar.gz | |
Fix compiler.preprocess compile_args not used
As described in
https://github.com/mesonbuild/meson/issues/12715#issuecomment-1883448780,
the compiler.preprocess function ignores compile_args. This should fix
it in both ninja and visualstudio backends.
Diffstat (limited to 'test cases/common/259 preprocess/meson.build')
| -rw-r--r-- | test cases/common/259 preprocess/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test cases/common/259 preprocess/meson.build b/test cases/common/259 preprocess/meson.build index 40168f95d..2ca5bed59 100644 --- a/test cases/common/259 preprocess/meson.build +++ b/test cases/common/259 preprocess/meson.build @@ -20,7 +20,9 @@ dep = declare_dependency(compile_args: '-DPLOP=0') pp_files = cc.preprocess('foo.c', bar_x, 'math.c', output: '@PLAINNAME@.c', dependencies: dep, - depends: foo_h) + depends: foo_h, + compile_args: ['-DBAZ=0'], +) foreach f : pp_files message(f.full_path()) |
