summaryrefslogtreecommitdiff
path: root/core/src/demo/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-11-02 23:51:23 +0800
committerruki <[email protected]>2019-11-02 23:51:23 +0800
commitb0a7b7a70cafc7988a33e1856147622b0ea92559 (patch)
treebeecf055fd33bc2824f985b9f12af87fcd7f088d /core/src/demo/xmake.lua
parent4f932ba407833f9559a23037958c7388cc22d2e0 (diff)
fix ffi for linux
Diffstat (limited to 'core/src/demo/xmake.lua')
-rw-r--r--core/src/demo/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua
index 2e26afb6e..b1b178dde 100644
--- a/core/src/demo/xmake.lua
+++ b/core/src/demo/xmake.lua
@@ -27,6 +27,7 @@ target("demo")
-- add links
if is_plat("windows") then
add_links("ws2_32", "advapi32", "shell32")
+ add_ldflags("/export:malloc", "/export:free")
elseif is_plat("android") then
add_links("m", "c")
elseif is_plat("macosx") then