Add CFGuard options to build scripts (disabled by default)
This commit is contained in:
1 parent
0af177bf4f
commit
e9401c8bfe
10 files changed
+122
-34
No files matched your search
+14
-7
@@ -18,6 +18,7 @@ set -e
|
||||
|
||||
LLVM_ARGS=""
|
||||
MINGW_ARGS=""
|
||||
CFGUARD_ARGS="--disable-cfguard"
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
@@ -47,6 +48,12 @@ while [ $# -gt 0 ]; do
|
||||
--with-default-win32-winnt=*)
|
||||
MINGW_ARGS="$MINGW_ARGS $1"
|
||||
;;
|
||||
--enable-cfguard)
|
||||
CFGUARD_ARGS="--enable-cfguard"
|
||||
;;
|
||||
--disable-cfguard)
|
||||
CFGUARD_ARGS="--disable-cfguard"
|
||||
;;
|
||||
*)
|
||||
if [ -n "$PREFIX" ]; then
|
||||
echo Unrecognized parameter $1
|
||||
@@ -58,7 +65,7 @@ while [ $# -gt 0 ]; do
|
||||
shift
|
||||
done
|
||||
if [ -z "$PREFIX" ]; then
|
||||
echo $0 [--enable-asserts] [--disable-dylib] [--full-llvm] [--with-python] [--symlink-projects] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tools-extra] [--host=triple] [--with-default-win32-winnt=0x601] [--with-default-msvcrt=ucrt] dest
|
||||
echo "$0 [--enable-asserts] [--disable-dylib] [--full-llvm] [--with-python] [--symlink-projects] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tools-extra] [--host=triple] [--with-default-win32-winnt=0x601] [--with-default-msvcrt=ucrt] [--enable-cfguard|--disable-cfguard] dest"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -77,11 +84,11 @@ if [ -z "$FULL_LLVM" ]; then
|
||||
./strip-llvm.sh $PREFIX
|
||||
fi
|
||||
./install-wrappers.sh $PREFIX
|
||||
./build-mingw-w64.sh $PREFIX $MINGW_ARGS
|
||||
./build-mingw-w64.sh $PREFIX $MINGW_ARGS $CFGUARD_ARGS
|
||||
./build-mingw-w64-tools.sh $PREFIX
|
||||
./build-compiler-rt.sh $PREFIX
|
||||
./build-libcxx.sh $PREFIX
|
||||
./build-mingw-w64-libraries.sh $PREFIX
|
||||
./build-compiler-rt.sh $PREFIX $CFGUARD_ARGS
|
||||
./build-libcxx.sh $PREFIX $CFGUARD_ARGS
|
||||
./build-mingw-w64-libraries.sh $PREFIX $CFGUARD_ARGS
|
||||
./build-compiler-rt.sh $PREFIX --build-sanitizers
|
||||
./build-libssp.sh $PREFIX
|
||||
./build-openmp.sh $PREFIX
|
||||
./build-libssp.sh $PREFIX $CFGUARD_ARGS
|
||||
./build-openmp.sh $PREFIX $CFGUARD_ARGS
|
||||
Reference in new issue
Block a user