diff --git a/all-release.sh b/all-release.sh
index 7abf5dc52e7b5ca465d49d4665ebf2cb2a916291..7e46a76d0c490d54deccdd507eac07f9d13ada97 100755
--- a/all-release.sh
+++ b/all-release.sh
@@ -1,4 +1,4 @@
 THREADS=${1:-5}
-CXX=g++-6 make release -j${THREADS} || exit 1
-CXX=g++-6 make install-release -j${THREADS} || exit 1
-CXX=g++-6 make test-release -j${THREADS} || exit 1
+CXX=g++-7 make release -j${THREADS} || exit 1
+CXX=g++-7 make install-release -j${THREADS} || exit 1
+CXX=g++-7 make test-release -j${THREADS} || exit 1
diff --git a/build-release.sh b/build-release.sh
index 6a92fbe0e9b8c1da9f543390271aa425dcac632a..286609aed03e3f151345a2555e8ec00fb86bdbaf 100755
--- a/build-release.sh
+++ b/build-release.sh
@@ -1,3 +1,3 @@
 THREADS=${1:-5}
-CXX=g++-6 make build-code-release -j${THREADS} || exit 1
-CXX=g++-6 make install-release -j${THREADS} || exit 1
+CXX=g++-7 make build-code-release -j${THREADS} || exit 1
+CXX=g++-7 make install-release -j${THREADS} || exit 1