Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Feb 26, 2024
1 parent 057ead1 commit 6afb602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/s/snmalloc/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package("snmalloc")

add_urls("https://github.com/microsoft/snmalloc/archive/refs/tags/$(version).tar.gz",
"https://github.com/microsoft/snmalloc.git")

add_versions("0.6.2", "e0486ccf03eac5dd8acbb66ea8ad33bec289572a51614acdf7117397e4f1af8c")
add_versions("0.6.0", "de1bfb86407d5aac9fdad88319efdd5593ca2f6c61fc13371c4f34aee0b6664f")

Expand All @@ -15,7 +16,7 @@ package("snmalloc")
end

on_install("macosx", "windows", "linux", "bsd", function (package)
local configs = {}
local configs = {"-DSNMALLOC_BUILD_TESTING=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
local cxflags
Expand Down

0 comments on commit 6afb602

Please sign in to comment.