aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian "sp1rit"​ <sp1rit@disroot.org>2025-04-16 22:11:01 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2025-04-17 19:01:22 +0300
commitda28caa63dc855ad897b259e6dbc1615c847fbf8 (patch)
tree129ee9f97d5e3e4e5e0cfd4f15e4d1fae9e6ff51
parent02792fa77878b50c10bebeb52b1a3ba2f7bf5f78 (diff)
downloadmeson-da28caa63dc855ad897b259e6dbc1615c847fbf8.zip
meson-da28caa63dc855ad897b259e6dbc1615c847fbf8.tar.gz
meson-da28caa63dc855ad897b259e6dbc1615c847fbf8.tar.bz2
build/executable: Respect name_prefix
executable did not respect the name_prefix kwarg
-rw-r--r--mesonbuild/build.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 0e8fb59..4f40a62 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -2043,6 +2043,8 @@ class Executable(BuildTarget):
else:
self.suffix = machine.get_exe_suffix()
self.filename = self.name
+ if self.prefix:
+ self.filename = self.prefix + self.filename
if self.suffix:
self.filename += '.' + self.suffix
self.outputs[0] = self.filename