summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-27 15:25:18 +0800
committerruki <[email protected]>2017-03-27 15:25:18 +0800
commitf9ff6e5e50c26501964a3b35279aa4881d3865a3 (patch)
treee66772a49e71ff7c0390dbe10ef9a4e779cae223 /core
parent3bbd679fd2edbda30369d74a02949fd193a93211 (diff)
fix self-build for macosx
Diffstat (limited to 'core')
-rw-r--r--core/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua
index d95f8dc64..a3ea15547 100644
--- a/core/xmake.lua
+++ b/core/xmake.lua
@@ -40,6 +40,11 @@ if is_plat("windows") then
add_ldflags("-nodefaultlib:\"msvcrt.lib\"")
end
+-- for macosx
+if is_plat("macosx") then
+ add_ldflags("-all_load", "-pagezero_size 10000", "-image_base 100000000")
+end
+
-- add package directories
add_packagedirs("pkg")