aboutsummaryrefslogtreecommitdiff
path: root/ninjabackend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-12-03 22:35:19 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-12-03 22:37:06 +0200
commit08ef881c86a6cd0fe1dd4ad0fd8efc0440275f04 (patch)
treeabd77d492ebc9cbc89a5418cd40976decca085dd /ninjabackend.py
parent3979e27a78cc84b78a6ec122284d38cc596165e0 (diff)
downloadmeson-08ef881c86a6cd0fe1dd4ad0fd8efc0440275f04.zip
meson-08ef881c86a6cd0fe1dd4ad0fd8efc0440275f04.tar.gz
meson-08ef881c86a6cd0fe1dd4ad0fd8efc0440275f04.tar.bz2
Extracted compiler definitions to their own file.
Diffstat (limited to 'ninjabackend.py')
-rw-r--r--ninjabackend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ninjabackend.py b/ninjabackend.py
index 2c8ef89..831812f 100644
--- a/ninjabackend.py
+++ b/ninjabackend.py
@@ -13,7 +13,7 @@
# limitations under the License.
import backends
-import environment
+import environment, mesonlib
import build
import mlog
import dependencies
@@ -22,7 +22,7 @@ from build import InvalidArguments
from coredata import MesonException
import os, sys, shutil, pickle, re
-if environment.is_windows():
+if mesonlib.is_windows():
quote_char = '"'
execute_wrapper = 'cmd /c'
else:
@@ -870,7 +870,7 @@ class NinjaBackend(backends.Backend):
outfile.write('\n')
def generate_fortran_dep_hack(self, outfile):
- if environment.is_windows():
+ if mesonlib.is_windows():
cmd = 'cmd /C ""'
else:
cmd = 'true'