-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sh
executable file
·34 lines (28 loc) · 1.41 KB
/
build.sh
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
#!/bin/bash
# Before executing this file, remember to cd verifier and run
# build.sh there to build the verifier.
export MCFI_SDK=/home/ben/MCFI/toolchain
# Add -Xclang -mdisable-cfi to disable CFI instrumentation for
# the JIT compiler's code; also pass -DNO_V8_CFI to disable the MCFI
# instrumentation for the CEntries and registration of metadata. The
# runtime needs to be built with
# NOCFI=1 NOJCV=1 to disable CFG gen and JIT code verification
#export CXX="$MCFI_SDK/bin/clang++ -Xclang -mdisable-cfi -DNO_V8_CFI -DNO_JITCODE_CFI"
#export CC="$MCFI_SDK/bin/clang -Xclang -mdisable-cfi -DNO_V8_CFI -DNO_JITCODE_CFI"
# Add -DNO_JITCODE_CFI to compiler flags to disable CFI instrumentation
# for the JITted code and JEntries; the runtime needs to be built with
# NOJCV=1 to disable the JIT code verification
#export CXX="$MCFI_SDK/bin/clang++ -DNO_JITCODE_CFI"
#export CC="$MCFI_SDK/bin/clang -DNO_JITCODE_CFI"
# Add -Xclang -mdisable-picfi to only enable MCFI instrumentation for
# the JIT compiler's code; the runtime needs to be built with
# MCFI=1
#export CXX="$MCFI_SDK/bin/clang++ -Xclang -mdisable-picfi"
#export CC="$MCFI_SDK/bin/clang -Xclang -mdisable-picfi"
# PICFI build, by default
export CXX="$MCFI_SDK/bin/clang++"
export CC="$MCFI_SDK/bin/clang"
export CPP="$CC -E"
export LINK="$MCFI_SDK/bin/clang++"
#make x64.debug disassembler=on snapshot=off werror=no -j4
make x64.release disassembler=on snapshot=off werror=no -j4