Skip building libstdc++ on MSYS(Windows) due to internal compiler error

This commit is contained in:
Martin Lisowski 2025-01-07 15:28:48 +01:00
parent 5864273e29
commit f9692c722a
1 changed files with 2 additions and 1 deletions

View File

@ -399,7 +399,8 @@ void PortGCC() {
// Build libstdc++.
// TODO Waiting on GCC 11.3 to do this for the port. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017.
// TODO Work out why this sometimes hangs on Darwin.
if SystemGetHostName() != "Darwin" {
// Also skip building libstdc++ on MSYS/Windows because it leads to gcc internal compiler error, Segfault
if SystemGetHostName() != "Darwin" && !StringStartsWith(SystemGetHostName(), "MSYS") {
assert SystemShellExecuteWithWorkingDirectory("bin/build-gcc", "make all-target-libstdc++-v3 -j %processorCount%");
assert SystemShellExecuteWithWorkingDirectory("bin/build-gcc", "make install-target-libstdc++-v3");
}