refactor: arena uses Allocator
This commit is contained in:
11
xmake.lua
11
xmake.lua
@@ -44,7 +44,7 @@ add_requires("lae_allocator")
|
||||
target("lae_arena")
|
||||
set_kind("static")
|
||||
|
||||
add_packages("lae_allocator")
|
||||
add_packages("lae_allocator", { public = true })
|
||||
|
||||
add_files("src/lae_arena.c")
|
||||
|
||||
@@ -64,9 +64,10 @@ if has_config("example") then
|
||||
target("example")
|
||||
set_kind("binary")
|
||||
|
||||
add_files("src/main.c")
|
||||
|
||||
add_deps("lae_arena")
|
||||
add_packages("lae_allocator")
|
||||
|
||||
add_files("src/main.c")
|
||||
end
|
||||
|
||||
-- =========================================================
|
||||
@@ -77,12 +78,12 @@ if has_config("tests") then
|
||||
target("test_arena")
|
||||
set_kind("binary")
|
||||
|
||||
add_files("test/test_arena.c")
|
||||
|
||||
add_deps("lae_arena")
|
||||
|
||||
add_packages("cmocka")
|
||||
|
||||
add_files("test/test_arena.c")
|
||||
|
||||
add_tests("default")
|
||||
|
||||
if has_config("asan") then
|
||||
|
||||
Reference in New Issue
Block a user