diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-12-22 12:31:43 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-12-22 12:36:19 +0100 |
commit | d52100f4ffd3191ca070be34043c5a5343cd1a0b (patch) | |
tree | 790e7c4f99e12b225fa2b5f5c1da111a205898be /platform/iphone/detect.py | |
parent | 404f39422665375e62863c0247768759bb2cd0be (diff) | |
download | redot-engine-d52100f4ffd3191ca070be34043c5a5343cd1a0b.tar.gz |
SCons: Allow building Mono module with OSXCross
Improve the test logic to only assume that we're building for macOS
if OSXCROSS_ROOT is defined *and* we requested p=osx.
Supersedes #24480.
Diffstat (limited to 'platform/iphone/detect.py')
-rw-r--r-- | platform/iphone/detect.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py index 4608770c09..3ce8dba716 100644 --- a/platform/iphone/detect.py +++ b/platform/iphone/detect.py @@ -80,6 +80,10 @@ def configure(env): ## Compiler configuration + # Save this in environment for use by other modules + if "OSXCROSS_IOS" in os.environ: + env["osxcross"] = True + env['ENV']['PATH'] = env['IPHONEPATH'] + "/Developer/usr/bin/:" + env['ENV']['PATH'] compiler_path = '$IPHONEPATH/usr/bin/${ios_triple}' |