From adb1a360b9f9edb26eda233326b1d539baeccd5b Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Wed, 22 Feb 2023 22:09:11 -0600 Subject: 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. --- docs/yaml/functions/executable.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/yaml/functions') diff --git a/docs/yaml/functions/executable.yaml b/docs/yaml/functions/executable.yaml index 380759457..abbc5feee 100644 --- a/docs/yaml/functions/executable.yaml +++ b/docs/yaml/functions/executable.yaml @@ -10,6 +10,9 @@ description: | The returned object also has methods that are documented in [[@exe]]. + *Since 1.3.0* executable names can be the same across multiple targets as + long as they each have a different `name_suffix`. + warnings: - The `link_language` kwarg was broken until 0.55.0 -- cgit v1.2.3