-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
70 lines (63 loc) · 1.48 KB
/
xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
add_rules(
"mode.debug", "mode.release", "mode.asan"
)
add_requires(
"gflags",
"gtest",
"concurrentqueue master",
"nlohmann_json",
"spdlog",
"jemalloc",
"zstd",
"magic_enum",
"libuuid"
)
add_requires("crc32c", { configs = { pic = true } })
add_requireconfs("crc32c", { override = true }, { configs = { cxflags = "-fPIC" } })
includes(
"koios",
"fifo-lru-cache"
)
set_arch("x64")
set_languages("c++23", "c17")
set_policy("build.warning", true)
set_policy("build.optimization.lto", false)
set_toolset("cc", "mold", {force = true})
add_packages("jemalloc")
if not is_mode("release") then
add_cxxflags(
"-DFRENZYKV_DEBUG",
"-DKOIOS_DEBUG",
{force = true}
)
end
add_cxxflags("-march=native", {force = true})
target("FrenzyKV")
set_kind("shared")
add_deps("koios", "toolpex", "fifo-lru-cache")
add_includedirs(
"./include",
{ public = true }
)
add_includedirs( "smhasher/src", { public = true })
add_files( "smhasher/src/MurmurHash*.cpp")
add_packages(
"gflags",
"concurrentqueue",
"nlohmann_json",
"spdlog",
"zstd",
"crc32c",
"magic_enum",
"libuuid"
)
set_warnings("all", "error")
add_cxflags("-march=native -mtune=native", { force = true })
add_files(
"util/*.cc",
"table/*.cc",
"io/*.cc",
"db/*.cc",
"log/*.cc",
"persistent/*.cc"
)