diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-31 18:59:10 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-09-01 15:42:39 -0400 |
| commit | 0b63dff3badf4f728d5dadda81dbef8de67ba164 (patch) | |
| tree | 287538d78c50c49068ff90f6c325a837821be270 /test cases | |
| parent | d67850b45e9ce323405e80aacee872049a3bc389 (diff) | |
| download | meson-0b63dff3badf4f728d5dadda81dbef8de67ba164.tar.gz | |
run_target: do not yield broken names with subdirs
A run_target object created in a subdir/meson.build always has a ninja
rule name of "name", not "subdir/name".
Fixes #9175
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/unit/65 alias target/meson.build | 2 | ||||
| -rw-r--r-- | test cases/unit/65 alias target/subdir/meson.build | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test cases/unit/65 alias target/meson.build b/test cases/unit/65 alias target/meson.build index 6934cc79b..bcd4005f4 100644 --- a/test cases/unit/65 alias target/meson.build +++ b/test cases/unit/65 alias target/meson.build @@ -13,3 +13,5 @@ custom_target = custom_target('custom-target', ) alias_target('build-all', [exe_target, custom_target]) + +subdir('subdir') diff --git a/test cases/unit/65 alias target/subdir/meson.build b/test cases/unit/65 alias target/subdir/meson.build new file mode 100644 index 000000000..b3f5480b5 --- /dev/null +++ b/test cases/unit/65 alias target/subdir/meson.build @@ -0,0 +1,6 @@ +r = run_target('run-target', + command: [python3, '-c', 'print("a run target was here")'] +) + +alias_target('aliased-run', r) + |
