aboutsummaryrefslogtreecommitdiff
path: root/ninjabackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ninjabackend.py')
-rw-r--r--ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ninjabackend.py b/ninjabackend.py
index f38d1ca..dab095b 100644
--- a/ninjabackend.py
+++ b/ninjabackend.py
@@ -1056,7 +1056,7 @@ rule FORTRAN_DEP_HACK
else:
sole_output = ''
curfile = infilelist[i]
- infilename = os.path.join(self.environment.get_source_dir(), curfile)
+ infilename = os.path.join(self.build_to_src, curfile)
outfiles = genlist.get_outputs_for(curfile)
outfiles = [os.path.join(self.get_target_private_dir(target), of) for of in outfiles]
args = [x.replace("@INPUT@", infilename).replace('@OUTPUT@', sole_output)\