diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-12-30 15:07:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-30 15:07:18 +0100 |
commit | dcc7f2b54b562ad5a58dcd0dfe72ad8e6f05deb9 (patch) | |
tree | 8182a38f1be82c70d31b6c8610fdc0b6c117f73d /platform/osx/detect.py | |
parent | 534044e8f8921d90677f7bc307dd2997d6eb873e (diff) | |
parent | d52100f4ffd3191ca070be34043c5a5343cd1a0b (diff) |
Merge pull request #24545 from akien-mga/osxcross-mono
SCons: Allow building Mono module with OSXCross
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r-- | platform/osx/detect.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index 051836b66d..6eee8f204f 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -72,7 +72,11 @@ def configure(env): ## Compiler configuration - if "OSXCROSS_ROOT" not in os.environ: # regular native build + # Save this in environment for use by other modules + if "OSXCROSS_ROOT" in os.environ: + env["osxcross"] = True + + if not "osxcross" in env: # regular native build env.Append(CCFLAGS=['-arch', 'x86_64']) env.Append(LINKFLAGS=['-arch', 'x86_64']) if (env["macports_clang"] != 'no'): |