diff options
Diffstat (limited to 'meta/recipes-support/boost/files/0001-build.sh-use-DNDEBUG-also-in-debug-builds.patch')
-rw-r--r-- | meta/recipes-support/boost/files/0001-build.sh-use-DNDEBUG-also-in-debug-builds.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/files/0001-build.sh-use-DNDEBUG-also-in-debug-builds.patch b/meta/recipes-support/boost/files/0001-build.sh-use-DNDEBUG-also-in-debug-builds.patch new file mode 100644 index 0000000000..4c6ef2ed84 --- /dev/null +++ b/meta/recipes-support/boost/files/0001-build.sh-use-DNDEBUG-also-in-debug-builds.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 2afd025997a57794ce24e07e914b461dfea6ba5f Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Mon, 26 Aug 2019 16:04:16 +0200 | ||
4 | Subject: [PATCH] build.sh: use -DNDEBUG also in debug builds | ||
5 | |||
6 | Without it, there is a significant performance regression | ||
7 | when running 'bjam install'. | ||
8 | |||
9 | Upstream-Status: Inappropriate [configuration] | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | tools/build/src/engine/build.sh | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/tools/build/src/engine/build.sh b/tools/build/src/engine/build.sh | ||
16 | index a1e4cd335..64e0a4c80 100755 | ||
17 | --- a/tools/build/src/engine/build.sh | ||
18 | +++ b/tools/build/src/engine/build.sh | ||
19 | @@ -436,7 +436,7 @@ case $B2_OS in | ||
20 | ;; | ||
21 | esac | ||
22 | |||
23 | -if check_debug_build "$@" ; then B2_CXXFLAGS="${B2_CXXFLAGS_DEBUG}" | ||
24 | +if check_debug_build "$@" ; then B2_CXXFLAGS="${B2_CXXFLAGS_DEBUG} -DNDEBUG" | ||
25 | else B2_CXXFLAGS="${B2_CXXFLAGS_RELEASE} -DNDEBUG" | ||
26 | fi | ||
27 | echo_run ${B2_CXX} ${CXXFLAGS} ${B2_CXXFLAGS} ${B2_SOURCES} -o b2 | ||