build-all: Add the option --clean-runtimes
This sets the variable CLEAN=1 after building the tools, which makes all the builds of the runtime libraries remove old build dirs before building. This is similar to, but has a slight different purpose than the existing --wipe-runtimes, which removes the installed runtime files. Both are useful when testing various build configurations and investigating issues, for different testing scenarios.
This commit is contained in:
1 parent
760b639c20
commit
6c479581da
1 file changed
+7
-1
+7
-1
@@ -73,6 +73,9 @@ while [ $# -gt 0 ]; do
|
|||||||
--wipe-runtimes)
|
--wipe-runtimes)
|
||||||
WIPE_RUNTIMES=1
|
WIPE_RUNTIMES=1
|
||||||
;;
|
;;
|
||||||
|
--clean-runtimes)
|
||||||
|
CLEAN_RUNTIMES=1
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
if [ -n "$PREFIX" ]; then
|
if [ -n "$PREFIX" ]; then
|
||||||
echo Unrecognized parameter $1
|
echo Unrecognized parameter $1
|
||||||
@@ -84,7 +87,7 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
if [ -z "$PREFIX" ]; then
|
if [ -z "$PREFIX" ]; then
|
||||||
echo "$0 [--host-clang[=clang]] [--enable-asserts] [--disable-dylib] [--full-llvm] [--with-python] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tools-extra] [--host=triple] [--with-default-win32-winnt=0x601] [--with-default-msvcrt=ucrt] [--enable-cfguard|--disable-cfguard] [--no-runtimes] [--no-tools] [--wipe-runtimes] dest"
|
echo "$0 [--host-clang[=clang]] [--enable-asserts] [--disable-dylib] [--full-llvm] [--with-python] [--disable-lldb] [--disable-lldb-mi] [--disable-clang-tools-extra] [--host=triple] [--with-default-win32-winnt=0x601] [--with-default-msvcrt=ucrt] [--enable-cfguard|--disable-cfguard] [--no-runtimes] [--no-tools] [--wipe-runtimes] [--clean-runtimes] dest"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -123,6 +126,9 @@ if [ -n "$WIPE_RUNTIMES" ]; then
|
|||||||
# in lib/clang/*/include.
|
# in lib/clang/*/include.
|
||||||
rm -rf $PREFIX/*-w64-mingw32 $PREFIX/lib/clang/*/lib
|
rm -rf $PREFIX/*-w64-mingw32 $PREFIX/lib/clang/*/lib
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$CLEAN_RUNTIMES" ]; then
|
||||||
|
export CLEAN=1
|
||||||
|
fi
|
||||||
./build-mingw-w64.sh $PREFIX $MINGW_ARGS $CFGUARD_ARGS
|
./build-mingw-w64.sh $PREFIX $MINGW_ARGS $CFGUARD_ARGS
|
||||||
./build-compiler-rt.sh $PREFIX $CFGUARD_ARGS
|
./build-compiler-rt.sh $PREFIX $CFGUARD_ARGS
|
||||||
./build-libcxx.sh $PREFIX $CFGUARD_ARGS
|
./build-libcxx.sh $PREFIX $CFGUARD_ARGS
|
||||||
|
|||||||
Reference in new issue
Block a user