From b4f88639dadefecb3539ccd115cb37324eb0e5db Mon Sep 17 00:00:00 2001 From: nakst <> Date: Thu, 3 Feb 2022 08:38:06 +0000 Subject: [PATCH] don't build libstdc++-v3 on darwin --- ports/port.script | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ports/port.script b/ports/port.script index d09f088..25f7a93 100644 --- a/ports/port.script +++ b/ports/port.script @@ -394,8 +394,11 @@ 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. - assert SystemShellExecuteWithWorkingDirectory("bin/build-gcc", "make all-target-libstdc++-v3 -j %processorCount%"); - assert SystemShellExecuteWithWorkingDirectory("bin/build-gcc", "make install-target-libstdc++-v3"); + // TODO Work out why this sometimes hangs on Darwin. + if SystemGetHostName() != "Darwin" { + assert SystemShellExecuteWithWorkingDirectory("bin/build-gcc", "make all-target-libstdc++-v3 -j %processorCount%"); + assert SystemShellExecuteWithWorkingDirectory("bin/build-gcc", "make install-target-libstdc++-v3"); + } } // Copy license files.