Created
February 26, 2016 10:43
-
-
Save eiennohito/bb38a042e8fe4cadfd08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/engine/SCons/Platform/__init__.py b/engine/SCons/Platform/__init__.py | |
index d8be160..201ac42 100644 | |
--- a/engine/SCons/Platform/__init__.py | |
+++ b/engine/SCons/Platform/__init__.py | |
@@ -62,6 +62,9 @@ def platform_default(): | |
files. Since we're architecture independent, though, we don't | |
care about the machine architecture. | |
""" | |
+ if 'HOMEBREW_BREW_FILE' in os.environ: | |
+ return 'homebrew' | |
+ | |
osname = os.name | |
if osname == 'java': | |
osname = os._osType | |
diff --git a/engine/SCons/Platform/homebrew.py b/engine/SCons/Platform/homebrew.py | |
new file mode 100644 | |
index 0000000..34f8ee1 | |
--- /dev/null | |
+++ b/engine/SCons/Platform/homebrew.py | |
@@ -0,0 +1,11 @@ | |
+import posix | |
+import darwin | |
+import os | |
+import sys | |
+ | |
+def generate(env): | |
+ if sys.platform.find('darwin') != -1: | |
+ darwin.generate(env) | |
+ else: | |
+ posix.generate(env) | |
+ env['PATH'] = os.environ['PATH'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment