Ver código fonte

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

Wendal Chen 2 anos atrás
pai
commit
d1cbe169f9
1 arquivos alterados com 4 adições e 0 exclusões
  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=calloc ",{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")
     set_kind("static")