aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/259 preprocess/meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/test cases/common/259 preprocess/meson.build b/test cases/common/259 preprocess/meson.build
index 2650166..5107427 100644
--- a/test cases/common/259 preprocess/meson.build
+++ b/test cases/common/259 preprocess/meson.build
@@ -6,16 +6,16 @@ add_project_arguments(['-DFOO=0', '-DBAR=0'], language: 'c')
fs = import('fs')
bar_content = fs.read('bar.c')
-bar_c = custom_target(
+bar_x = custom_target(
input: 'bar.c',
- output: 'bar.c',
+ output: 'bar.x',
command: ['python3', '-c', '''import sys;print(sys.argv[1].replace('@BAR@', 'bar'))''', bar_content],
capture: true,
)
dep = declare_dependency(compile_args: '-DPLOP=0')
-pp_files = cc.preprocess('foo.c', bar_c, output: '@PLAINNAME@', dependencies: dep)
+pp_files = cc.preprocess('foo.c', bar_x, output: '@PLAINNAME@.c', dependencies: dep)
foreach f : pp_files
message(f.full_path())