diff options
author | Dudemanguy <random342@airmail.cc> | 2023-02-22 22:09:11 -0600 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-10-05 08:43:38 -0700 |
commit | adb1a360b9f9edb26eda233326b1d539baeccd5b (patch) | |
tree | 8de1c2930bec9d5183705d6e73da04acaab035ec /test cases | |
parent | 4fadb2a2962d0cdb39da7cadd5c7b1b12984eeb5 (diff) | |
download | meson-adb1a360b9f9edb26eda233326b1d539baeccd5b.zip meson-adb1a360b9f9edb26eda233326b1d539baeccd5b.tar.gz meson-adb1a360b9f9edb26eda233326b1d539baeccd5b.tar.bz2 |
build: use suffix when getting target id for exes
When checking target names, meson explictly forbids having multiple
targets with the same name. This is good, but it is strict and it is
impossible to have targets with the same basename and differing suffixes
(e.g. foo and foo.bin) in the same directory. Allow this for executables
by including the suffix (if it exists) in the interal target id. So foo
would be foo@exe and foo.bin would be foo.bin@exe.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/unit/119 executable suffix/main.c | 1 | ||||
-rw-r--r-- | test cases/unit/119 executable suffix/meson.build | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test cases/unit/119 executable suffix/main.c b/test cases/unit/119 executable suffix/main.c new file mode 100644 index 0000000..78f2de1 --- /dev/null +++ b/test cases/unit/119 executable suffix/main.c @@ -0,0 +1 @@ +int main(void) { return 0; } diff --git a/test cases/unit/119 executable suffix/meson.build b/test cases/unit/119 executable suffix/meson.build new file mode 100644 index 0000000..8f95226 --- /dev/null +++ b/test cases/unit/119 executable suffix/meson.build @@ -0,0 +1,3 @@ +project('exectuable suffix', 'c') +foo = executable('foo', 'main.c') +foo_bin = executable('foo', 'main.c', name_suffix: 'bin') |