We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be581d9 commit 240a7ddCopy full SHA for 240a7dd
src/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh
@@ -27,10 +27,15 @@ sed -i'' 's|ftp://gcc\.gnu\.org/|https://gcc.gnu.org/|g' ./contrib/download_prer
27
./contrib/download_prerequisites
28
mkdir ../gcc-build
29
cd ../gcc-build
30
+
31
+# '-fno-reorder-blocks-and-partition' is required to
32
+# enable BOLT optimization of the C++ standard library,
33
+# which is included in librustc_driver.so
34
hide_output ../gcc-$GCC/configure \
35
--prefix=/rustroot \
36
--enable-languages=c,c++ \
- --disable-gnu-unique-object
37
+ --disable-gnu-unique-object \
38
+ --enable-cxx-flags='-fno-reorder-blocks-and-partition'
39
hide_output make -j$(nproc)
40
hide_output make install
41
ln -s gcc /rustroot/bin/cc
0 commit comments