瀏覽代碼

update: xmake.lua也需要提交,覆盖3个time函数

Wendal Chen 3 年之前
父節點
當前提交
d1cbe169f9
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      xmake.lua

+ 4 - 0
xmake.lua

@@ -111,6 +111,10 @@ add_ldflags(" -Wl,--wrap=free ",{force = true})
 add_ldflags(" -Wl,--wrap=zalloc ",{force = true})
 add_ldflags(" -Wl,--wrap=zalloc ",{force = true})
 add_ldflags(" -Wl,--wrap=calloc ",{force = true})
 add_ldflags(" -Wl,--wrap=calloc ",{force = true})
 add_ldflags(" -Wl,--wrap=realloc ",{force = true})
 add_ldflags(" -Wl,--wrap=realloc ",{force = true})
+add_ldflags(" -Wl,--wrap=localtime ",{force = true})
+add_ldflags(" -Wl,--wrap=gmtime ",{force = true})
+add_ldflags(" -Wl,--wrap=mktime ",{force = true})
+
 
 
 target("app")
 target("app")
     set_kind("static")
     set_kind("static")