aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-01-21 10:57:11 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-01-21 10:59:15 -0800
commit4550cf9500fd60570e29eb134fc862563fff262a (patch)
tree0158fd782de2a655de02cc0ff53f78e080863fc5 /mesonbuild/backend/ninjabackend.py
parent27ca7ed67a720a61509adfe4f8f9dc654784d86f (diff)
downloadmeson-4550cf9500fd60570e29eb134fc862563fff262a.zip
meson-4550cf9500fd60570e29eb134fc862563fff262a.tar.gz
meson-4550cf9500fd60570e29eb134fc862563fff262a.tar.bz2
ninjabackend: Correctly reference custom_target outputs in subdirs with rust
This was missed in the last iteration of fixing things.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 400433f..6c524a0 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -1598,7 +1598,7 @@ int dummy;
if isinstance(g, GeneratedList):
fname = os.path.join(self.get_target_private_dir(target), i)
else:
- fname = i
+ fname = os.path.join(g.get_subdir(), i)
if main_rust_file is None:
main_rust_file = fname
orderdeps.append(fname)