diff options
author | comex | 2015-08-17 01:52:11 -0400 |
---|---|---|
committer | comex | 2015-08-17 01:55:06 -0400 |
commit | c99b238cec2e3ec89774dd1dcc4c352d026d8100 (patch) | |
tree | ebc651eb8eed234141389709f726d1210bbd27ea /script | |
parent | stuff (diff) | |
download | substitute-c99b238cec2e3ec89774dd1dcc4c352d026d8100.tar.gz |
mconfig quick fixes
Diffstat (limited to 'script')
-rw-r--r-- | script/mconfig.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/mconfig.py b/script/mconfig.py index 179218c..d025545 100644 --- a/script/mconfig.py +++ b/script/mconfig.py @@ -503,7 +503,7 @@ class Machine(object): if not self.is_darwin(): return False tc = self.darwin_target_conditionals() - return tc['TARGET_OS_IOS'] or tc['TARGET_OS_SIMULATOR'] + return any(tc.get(flag) for flag in ['TARGET_OS_IOS', 'TARGET_OS_SIMULATOR', 'TARGET_OS_IPHONE', 'TARGET_IPHONE_SIMULATOR']) def is_macosx(self): return self.is_darwin() and not self.is_ios() @@ -621,6 +621,8 @@ class UnixToolchain(object): return tool.locate_in_paths(prefix, self.settings.tool_search_paths) def calc_darwin_target_conditionals(ctools, settings): + if not os.path.exists(settings.out): + os.makedirs(settings.out) fn = os.path.join(settings.out, '_calc_darwin_target_conditionals.c') with open(fn, 'w') as fp: fp.write('#include <TargetConditionals.h>\n') |