aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-03-08 18:29:37 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-03-08 18:29:37 +0200
commit7ced6d2071fff5cba845b91d4cd8d4214d157fab (patch)
tree472c67c4cf73c2ead20675fd2de02a77bca4a355 /environment.py
parent4dda53483e8be4d7a76a61ef027a857bba652953 (diff)
downloadmeson-7ced6d2071fff5cba845b91d4cd8d4214d157fab.zip
meson-7ced6d2071fff5cba845b91d4cd8d4214d157fab.tar.gz
meson-7ced6d2071fff5cba845b91d4cd8d4214d157fab.tar.bz2
First unit test compiles on Windows/MinGW.
Diffstat (limited to 'environment.py')
-rwxr-xr-xenvironment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/environment.py b/environment.py
index 85ffd17..b8fa5ce 100755
--- a/environment.py
+++ b/environment.py
@@ -228,6 +228,7 @@ def is_osx():
return platform.system().lower() == 'darwin'
def is_windows():
+ print(platform.system().lower())
return platform.system().lower() == 'windows'
header_suffixes = ['h', 'hh', 'hpp', 'hxx', 'H']
@@ -237,7 +238,7 @@ class Environment():
coredata_file = os.path.join(private_dir, 'coredata.dat')
def __init__(self, source_dir, build_dir, main_script_file, options):
- assert(main_script_file[0] == '/')
+ assert(os.path.isabs(main_script_file))
assert(not os.path.islink(main_script_file))
self.source_dir = source_dir
self.build_dir = build_dir