Added path for Mono installed through Homebrew
On macOS, it is common to install packages like Mono through the third-party
package-manager Homebrew. This commit simply adds an additional path to
where Homebrew installs the Mono framework.
(cherry picked from commit 39aabba0a9
)
This commit is contained in:
parent
c751b66d38
commit
327452cb09
|
@ -88,7 +88,7 @@ def find_msbuild_unix(filename):
|
||||||
|
|
||||||
hint_dirs = ['/opt/novell/mono/bin']
|
hint_dirs = ['/opt/novell/mono/bin']
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
hint_dirs = ['/Library/Frameworks/Mono.framework/Versions/Current/bin'] + hint_dirs
|
hint_dirs = ['/Library/Frameworks/Mono.framework/Versions/Current/bin', '/usr/local/var/homebrew/linked/mono/bin'] + hint_dirs
|
||||||
|
|
||||||
for hint_dir in hint_dirs:
|
for hint_dir in hint_dirs:
|
||||||
hint_path = os.path.join(hint_dir, filename)
|
hint_path = os.path.join(hint_dir, filename)
|
||||||
|
|
|
@ -64,6 +64,7 @@ String _find_build_engine_on_unix(const String &p_name) {
|
||||||
const char *locations[] = {
|
const char *locations[] = {
|
||||||
#ifdef OSX_ENABLED
|
#ifdef OSX_ENABLED
|
||||||
"/Library/Frameworks/Mono.framework/Versions/Current/bin/",
|
"/Library/Frameworks/Mono.framework/Versions/Current/bin/",
|
||||||
|
"/usr/local/var/homebrew/linked/mono/bin/",
|
||||||
#endif
|
#endif
|
||||||
"/opt/novell/mono/bin/"
|
"/opt/novell/mono/bin/"
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue