-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflags.mk
23 lines (17 loc) · 1.01 KB
/
flags.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC = g++
CLANG_TIDY = clang-tidy
CLANG_FORMAT = clang-format
CPPCHECK = cppcheck
LIB_DIR = /usr/local/lib
INCLUDE_DIR = /usr/local/include
DEBUG_SYMBOL = -g
PTHREAD = -lpthread
CFLAGS = -std=c++17 -pedantic -Wall -Wextra -fno-rtti -fno-exceptions -no-pie
SANITIZE_FLAGS = -fsanitize=address -fsanitize=undefined
OPT_FLAGS = -O3 -march=native -flto -fipa-pta
CLANG_FORMAT_FLAGS = -i -style=Google -sort-includes
CLANG_TIDY_FLAGS = -checks=*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-bounds-constant-array-index,-llvm-header-guard,-cppcoreguidelines-pro-type-vararg,-readability-braces-around-statements,-google-readability-braces-around-statements -- -std=c++14 -I$(INCLUDE_DIR)
CPPCHECK_FLAGS = --enable=all
TEST_FLAGS = $(DEBUG_SYMBOL) $(SANITIZE_FLAGS) -lgtest -lgtest_main $(PTHREAD)
BENCHMARK_FLAGS = $(OPT_FLAGS) -lbenchmark -lpthread
PERF_FLAGS = $(OPT_FLAGS) $(DEBUG_SYMBOL) -lbenchmark $(PTHREAD)