mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-27 14:08:18 +03:00
build-mingw-w64.sh: Build libstdc++v3 twice
The first build is missing a bunch of libc functions because libstdc++ is missing (obviously). Building again lets it find these libc functions and take better codepaths. This fixes D9VK performance regressions, for example in Rocket League.
This commit is contained in:
parent
4cc3856885
commit
0bdd04209c
@ -120,12 +120,19 @@ function build_arch {
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
pushd gcc/
|
pushd gcc/
|
||||||
#below steps require libgcc in default library location, but
|
#next step requires libgcc in default library location, but
|
||||||
#"canadian" build doesn't handle that, so install it explicitly
|
#"canadian" build doesn't handle that, so install it explicitly
|
||||||
PATH=$NEWPATH make configure-target-libgcc
|
PATH=$NEWPATH make configure-target-libgcc
|
||||||
PATH=$NEWPATH make -C $WIN32_TARGET_ARCH/libgcc $JOBS
|
PATH=$NEWPATH make -C $WIN32_TARGET_ARCH/libgcc $JOBS
|
||||||
PATH=$NEWPATH make -C $WIN32_TARGET_ARCH/libgcc $JOBS install
|
PATH=$NEWPATH make -C $WIN32_TARGET_ARCH/libgcc $JOBS install
|
||||||
|
|
||||||
|
#install libstdc++ and other stuff
|
||||||
|
PATH=$NEWPATH make $JOBS
|
||||||
|
PATH=$NEWPATH make $JOBS install
|
||||||
|
|
||||||
|
#libstdc++ requires that libstdc++ is installed in order to find gettimeofday(???)
|
||||||
|
#so, rebuild libstdc++ after installing it above
|
||||||
|
PATH=$NEWPATH make $JOBS -C $WIN32_TARGET_ARCH/libstdc++-v3/ distclean
|
||||||
PATH=$NEWPATH make $JOBS
|
PATH=$NEWPATH make $JOBS
|
||||||
PATH=$NEWPATH make $JOBS install
|
PATH=$NEWPATH make $JOBS install
|
||||||
popd
|
popd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user