aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-05 13:27:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-05 13:48:20 +0200
commit4d102f5d28e7f5406da3292a1f5f4f369dd05031 (patch)
treefc76c2f34dac65d363e8e8b3334db2202905856c
parentf5be99eb78afe8da70287083384f9c122f5d8644 (diff)
Disable all warnings during bootstrap stage 1
-rw-r--r--BOOTSTRAP-UNIX.cli4
-rw-r--r--BOOTSTRAP-WINDOWS-CLANG.cli4
-rw-r--r--BOOTSTRAP-WINDOWS-MINGW.cli4
-rw-r--r--BOOTSTRAP-WINDOWS-MSVC.cli2
-rw-r--r--build-clang.bat.in7
-rw-r--r--build-mingw.bat.in7
-rw-r--r--build-msvc.bat.in5
-rw-r--r--build.sh.in7
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