Fix accidental use of absolute include paths.

This commit is contained in:
Jussi Pakkanen 2015-08-26 22:46:08 +03:00
parent 7ca852525c
commit 6e6c7dd1fc
1 changed files with 2 additions and 2 deletions

View File

@ -1190,9 +1190,9 @@ rule FORTRAN_DEP_HACK
basedir = i.get_curdir() basedir = i.get_curdir()
for d in i.get_incdirs(): for d in i.get_incdirs():
expdir = os.path.join(basedir, d) expdir = os.path.join(basedir, d)
fulldir = os.path.join(self.environment.get_source_dir(), expdir) srctreedir = os.path.join(self.build_to_src, expdir)
bargs = compiler.get_include_args(expdir) bargs = compiler.get_include_args(expdir)
sargs = compiler.get_include_args(fulldir) sargs = compiler.get_include_args(srctreedir)
commands += bargs commands += bargs
commands += sargs commands += sargs
if self.environment.coredata.use_pch: if self.environment.coredata.use_pch: