From 4d102f5d28e7f5406da3292a1f5f4f369dd05031 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Jun 2023 13:27:21 +0200 Subject: Disable all warnings during bootstrap stage 1 --- BOOTSTRAP-UNIX.cli | 4 ++-- BOOTSTRAP-WINDOWS-CLANG.cli | 4 ++-- BOOTSTRAP-WINDOWS-MINGW.cli | 4 ++-- BOOTSTRAP-WINDOWS-MSVC.cli | 2 +- build-clang.bat.in | 7 +++++-- build-mingw.bat.in | 7 +++++-- build-msvc.bat.in | 5 ++++- build.sh.in | 7 +++++-- 8 files changed, 26 insertions(+), 14 deletions(-) diff --git a/BOOTSTRAP-UNIX.cli b/BOOTSTRAP-UNIX.cli index 1023ca2..aee6fd9 100644 --- a/BOOTSTRAP-UNIX.cli +++ b/BOOTSTRAP-UNIX.cli @@ -118,7 +118,7 @@ file for details. \ $ cd build2 -$ ./bootstrap.sh g++ +$ ./bootstrap.sh g++ -w $ build2/b-boot --version \ @@ -128,7 +128,7 @@ in parallel: \ $ cd build2 -$ make -f bootstrap.gmake -j 8 CXX=g++ +$ make -f bootstrap.gmake -j 8 CXX=g++ CXXFLAGS=-w $ build2/b-boot --version \ diff --git a/BOOTSTRAP-WINDOWS-CLANG.cli b/BOOTSTRAP-WINDOWS-CLANG.cli index efaf4e7..b03773c 100644 --- a/BOOTSTRAP-WINDOWS-CLANG.cli +++ b/BOOTSTRAP-WINDOWS-CLANG.cli @@ -69,7 +69,7 @@ compile options; run \c{bootstrap-clang.bat /?} and see the \ > cd build2 -> .\bootstrap-clang.bat clang++ +> .\bootstrap-clang.bat clang++ -m64 -w > build2\b-boot --version \ @@ -79,7 +79,7 @@ in parallel: \ > cd build2 -> mingw32-make -f bootstrap.gmake -j 8 CXX=clang++ +> mingw32-make -f bootstrap.gmake -j 8 CXX=clang++ \"CXXFLAGS=-m64 -w\" > build2\b-boot --version \ diff --git a/BOOTSTRAP-WINDOWS-MINGW.cli b/BOOTSTRAP-WINDOWS-MINGW.cli index f8385c3..39c2581 100644 --- a/BOOTSTRAP-WINDOWS-MINGW.cli +++ b/BOOTSTRAP-WINDOWS-MINGW.cli @@ -77,7 +77,7 @@ compile options; run \c{bootstrap-mingw.bat /?} and see the \ > cd build2 -> .\bootstrap-mingw.bat g++ -static +> .\bootstrap-mingw.bat g++ -w -static > build2\b-boot --version \ @@ -87,7 +87,7 @@ in parallel: \ > cd build2 -> mingw32-make -f bootstrap.gmake -j 8 CXX=g++ LDFLAGS=-static +> mingw32-make -f bootstrap.gmake -j 8 CXX=g++ CXXFLAGS=-w LDFLAGS=-static > build2\b-boot --version \ diff --git a/BOOTSTRAP-WINDOWS-MSVC.cli b/BOOTSTRAP-WINDOWS-MSVC.cli index 8a62ee4..49a84c0 100644 --- a/BOOTSTRAP-WINDOWS-MSVC.cli +++ b/BOOTSTRAP-WINDOWS-MSVC.cli @@ -59,7 +59,7 @@ file for details. \ > cd build2 -> .\bootstrap-msvc.bat cl +> .\bootstrap-msvc.bat cl /w /MP8 > build2\b-boot --version \ diff --git a/build-clang.bat.in b/build-clang.bat.in index c983aae..f04fd1a 100644 --- a/build-clang.bat.in +++ b/build-clang.bat.in @@ -448,6 +448,9 @@ set "BDEP_DEF_OPT=0" @rem Bootstrap. @rem +@rem Note: disable all warnings since we cannot do anything more granular +@rem during bootstrap stage 1. +@rem cd build2 @if "_%make%_" == "__" ( @@ -459,12 +462,12 @@ cd build2 :batchfile @rem Execute in a separate cmd.exe to preserve the echo mode. @rem -cmd /C bootstrap-clang.bat %cxx% +cmd /C bootstrap-clang.bat %cxx% -m64 -w @if errorlevel 1 goto error @goto endfile :makefile -%make% -f bootstrap.gmake CXX=%cxx% +%make% -f bootstrap.gmake CXX=%cxx% "CXXFLAGS=-m64 -w" @if errorlevel 1 goto error @goto endfile diff --git a/build-mingw.bat.in b/build-mingw.bat.in index caff834..8982f84 100644 --- a/build-mingw.bat.in +++ b/build-mingw.bat.in @@ -448,6 +448,9 @@ set "BDEP_DEF_OPT=0" @rem Bootstrap. @rem +@rem Note: disable all warnings since we cannot do anything more granular +@rem during bootstrap stage 1. +@rem cd build2 @if "_%make%_" == "__" ( @@ -459,12 +462,12 @@ cd build2 :batchfile @rem Execute in a separate cmd.exe to preserve the echo mode. @rem -cmd /C bootstrap-mingw.bat %cxx% -static +cmd /C bootstrap-mingw.bat %cxx% -w -static @if errorlevel 1 goto error @goto endfile :makefile -%make% -f bootstrap.gmake CXX=%cxx% LDFLAGS=-static +%make% -f bootstrap.gmake CXX=%cxx% CXXFLAGS=-w LDFLAGS=-static @if errorlevel 1 goto error @goto endfile diff --git a/build-msvc.bat.in b/build-msvc.bat.in index 85503bb..b3035b4 100644 --- a/build-msvc.bat.in +++ b/build-msvc.bat.in @@ -418,11 +418,14 @@ set "BDEP_DEF_OPT=0" @rem Bootstrap. @rem +@rem Note: disable all warnings since we cannot do anything more granular +@rem during bootstrap stage 1. +@rem cd build2 @rem Execute in a separate cmd.exe to preserve the echo mode. @rem -cmd /C bootstrap-msvc.bat %cxx% %ops% +cmd /C bootstrap-msvc.bat %cxx% /w %ops% @if errorlevel 1 goto error build2\b-boot --version diff --git a/build.sh.in b/build.sh.in index f9279b7..43c648a 100644 --- a/build.sh.in +++ b/build.sh.in @@ -601,11 +601,14 @@ export BDEP_DEF_OPT # Bootstrap, stage 1. # +# Note: disable all warnings since we cannot do anything more granular during +# bootstrap stage 1. +# run cd build2 if test -z "$make"; then - run ./bootstrap.sh "$cxx" + run ./bootstrap.sh "$cxx" -w else - run $make -f ./bootstrap.gmake "CXX=$cxx" + run $make -f ./bootstrap.gmake "CXX=$cxx" CXXFLAGS=-w fi run build2/b-boot --version -- cgit v1.1