diff options
author | iain holmes <iain@xamarin.com> | 2015-07-02 19:31:37 +0300 |
---|---|---|
committer | iain holmes <iain@xamarin.com> | 2015-10-30 15:18:01 +0300 |
commit | 5e5d5f6ef127c9300bd5cf41f7dd586389e83d33 (patch) | |
tree | e3e4439dd1ad2b03161be86b901bd55f00502d7a /main | |
parent | a9f433242cb21383f8b0d69fdcad8b8922594c87 (diff) |
[Mac Platform] Enable 64bit with an environment variable
Diffstat (limited to 'main')
-rw-r--r-- | main/Makefile.am | 10 | ||||
-rw-r--r-- | main/src/addins/MacPlatform/MacPlatform.cs | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/main/Makefile.am b/main/Makefile.am index f075ee815b..b1460ef5d5 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -116,10 +116,12 @@ endif run-bundle: $(PROGRAM) $(MD_LAUNCH_SETUP) $(MD_LAUNCH_EXTRA_ENV) $(MD_BIN_PATH)/MonoDevelop --no-redirect +run-64: run-sgen-64 run-boehm: runmd run-sgen: runmd-sgen +run-sgen-64: runmd-sgen-64 runmd: $(PROGRAM) $(MD_LAUNCH) --debug $(MD_BIN_PATH)/MonoDevelop.exe --no-redirect @@ -127,6 +129,9 @@ runmd: $(PROGRAM) runmd-sgen: $(PROGRAM) $(MD_LAUNCH)-sgen --debug $(MD_BIN_PATH)/MonoDevelop.exe --no-redirect +runmd-sgen-64: $(PROGRAM) + $(MD_LAUNCH)-sgen64 --debug $(MD_BIN_PATH)/MonoDevelop.exe --no-redirect + run-debug: $(PROGRAM) MONODEVELOP_CONSOLE_LOG_LEVEL=All $(MD_LAUNCH) --debug=casts $(MD_BIN_PATH)/MonoDevelop.exe --no-redirect @@ -135,6 +140,11 @@ run-gdb: $(PROGRAM) $(MD_LAUNCH_SETUP) gdb $(RUNTIME) -x gdb.commands rm -f gdb.commands +run-gdb-64: $(PROGRAM) + echo "run --debug $(MD_BIN_PATH)/MonoDevelop.exe" > gdb.commands + $(MD_LAUNCH_SETUP) gdb $(RUNTIME)-64 -x gdb.commands + rm -f gdb.commands + run-gdb-sgen: $(PROGRAM) echo "run --debug $(MD_BIN_PATH)/MonoDevelop.exe" > gdb.commands $(MD_LAUNCH_SETUP) gdb $(RUNTIME)-sgen -x gdb.commands diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs index 80438f2187..b765cc0a06 100644 --- a/main/src/addins/MacPlatform/MacPlatform.cs +++ b/main/src/addins/MacPlatform/MacPlatform.cs @@ -67,7 +67,8 @@ namespace MonoDevelop.MacIntegration public MacPlatformService () { - if (IntPtr.Size == 8) + string safe64 = Environment.GetEnvironmentVariable ("MONODEVELOP_64BIT_SAFE"); + if (string.IsNullOrEmpty (safe64) && IntPtr.Size == 8) throw new Exception ("Mac integration is not yet 64-bit safe"); if (initedGlobal) |