-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTuprules.tup
35 lines (28 loc) · 1.21 KB
/
Tuprules.tup
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
CPP = clang++-3.8
LINK=clang++-3.8
CPPFLAGS += -Wall -Wextra -pedantic -Wshadow
CPPFLAGS += -std=c++11 -Wno-int-to-pointer-cast -Wtrigraphs
CPPFLAGS += -Wstrict-overflow -fno-strict-aliasing
CPPFLAGS += -Wcast-align -Wpointer-arith -Wsign-compare
CPPFLAGS += -Wformat=2 -Wno-format-y2k -Wmissing-braces -Wparentheses
CPPFLAGS += -Wno-missing-field-initializers
#CPPFLAGS += -Wno-deprecated-declarations -stdlib=libstdc++
CPPFLAGS += -Wno-braced-scalar-init -Wno-unused-result
LDFLAGS += -ljack
CPPFLAGS += -O3 -fslp-vectorize-aggressive -march=native
CPPFLAGS += -DJACK
#CPPFLAGS += -O1 -g -DDEBUG
#CPPFLAGS += -fno-inline -fno-omit-frame-pointer
#LDFLAGS += -fno-inline -fno-omit-frame-pointer
#CPPFLAGS += -fsanitize=address
#LDFLAGS += -fsanitize=address
#CPPFLAGS += -fsanitize=memory -fPIE -pie
#LDFLAGS += -fsanitize=memory -fPIE -pie
# these are to analyize automatic loop vectorization failures
#CPPFLAGS += -Rpass=loop-vectorize
#CPPFLAGS += -Rpass-analysis=loop-vectorize
#CPPFLAGS += -Rpass-missed=loop-vectorized
!cpp = |> ^ CPP %f^ $(CPP) -c $(CPPFLAGS) %f -o %o |>
#!cpp = |> $(CPP) -c $(CPPFLAGS) %f -o %o |>
!ld = |> ^ LINK %o^ $(CPP) %f -o %o $(LDFLAGS) |>
!protoc = |> ^ PROTOC %f^ protoc --cpp_out=. %f |>