-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.buckconfig
28 lines (23 loc) · 1.72 KB
/
.buckconfig
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
[parser]
polyglot_parsing_enabled = true
default_build_file_syntax = SKYLARK
[alias]
db = //:db#debug
db_release = //:db#release
db_asan = //:db#asan
test = //:dbtest#debug
[cxx]
cflags = -pthread -Wstrict-aliasing -DCACHE_LINE_SIZE=64 -DSPDLOG_COMPILED_LIB -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
cxxflags = -pthread -Wstrict-aliasing -DCACHE_LINE_SIZE=64 -DSPDLOG_COMPILED_LIB -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
[cxx#debug]
cxxflags = -g -O0 -fstandalone-debug -std=c++17 -stdlib=libc++ -U_FORTIFY_SOURCE
cflags = -g -O0 -fstandalone-debug -U_FORTIFY_SOURCE
ldflags = -fuse-ld=lld -std=c++17 -g -O0 -fstandalone-debug -Wl,-Bstatic -lc++ -lc++abi -Wl,-Bdynamic -nostdlib++
[cxx#release]
cxxflags = -Ofast -march=native -flto=thin -std=c++17 -stdlib=libc++ -fwhole-program-vtables -fvisibility=hidden -fvisibility-inlines-hidden -fforce-emit-vtables -fstrict-vtable-pointers -DNDEBUG
cflags = -Ofast -march=native -flto=thin -fwhole-program-vtables -fvisibility=hidden -fvisibility-inlines-hidden -fforce-emit-vtables -fstrict-vtable-pointers -DNDEBUG
ldflags = -fuse-ld=lld -Ofast -fwhole-program-vtables -fvisibility=hidden -fvisibility-inlines-hidden -fforce-emit-vtables -fstrict-vtable-pointers -march=native -std=c++17 -flto=thin -Wl,-Bstatic -lc++ -lc++abi -Wl,-Bdynamic -nostdlib++
[cxx#asan]
cxxflags = -Og -g -march=native -flto=thin -std=c++17 -stdlib=libc++ -DNDEBUG -fsanitize=address -fsanitize-recover=address
cflags = -Og -g -march=native -flto=thin -DNDEBUG -fsanitize=address -fsanitize-recover=address
ldflags = -fuse-ld=lld -Og -g -march=native -std=c++17 -flto=thin -Wl,-Bstatic -lc++ -lc++abi -Wl,-Bdynamic -nostdlib++ -fsanitize=address -fsanitize-recover=address