diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-26 18:37:56 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-26 18:37:56 +0300 |
commit | 83df68aa3f39dba81c946f94e9275df893ce386a (patch) | |
tree | 394cd7b521b9cc02529a97e0b06fa64c8c7d7cca | |
parent | dcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06 (diff) | |
download | meson-83df68aa3f39dba81c946f94e9275df893ce386a.zip meson-83df68aa3f39dba81c946f94e9275df893ce386a.tar.gz meson-83df68aa3f39dba81c946f94e9275df893ce386a.tar.bz2 |
Fortran dep fix on Windows.
-rw-r--r-- | ninjabackend.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ninjabackend.py b/ninjabackend.py index 8511a15..9234c41 100644 --- a/ninjabackend.py +++ b/ninjabackend.py @@ -852,16 +852,20 @@ class NinjaBackend(backends.Backend): outfile.write('\n') def generate_fortran_dep_hack(self, outfile): - rule = '''# Workaround for these issues: + if environment.is_windows(): + cmd = 'cmd /C ""' + else: + cmd = 'true' + template = '''# Workaround for these issues: # https://groups.google.com/forum/#!topic/ninja-build/j-2RfBIOd_8 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485 rule FORTRAN_DEP_HACK - command = echo + command = %s description = Dep hack restat = 1 ''' - outfile.write(rule) + outfile.write(template % cmd) def generate_compile_rule_for(self, langname, compiler, qstr, is_cross, outfile): if langname == 'java': |