mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-10 03:13:46 +00:00
On Mac OS X force the debug grades to be compiled by GCC at -O0.
Using -O2 (the default), results in excessive compilation times. (There is at least one open GCC bug, #26854, concerning excessive compilation times on Darwin - it is likely we are also bumping into this.) (I will update mmc --make separately.) scripts/mgnuc.in: On Darwin compile debug grades at -O0 when using GCC. This avoid excessive compilation times due to performance bugs in GCC.
This commit is contained in:
@@ -610,6 +610,18 @@ case $FULLARCH in powerpc*apple*darwin*)
|
||||
esac
|
||||
esac
|
||||
|
||||
# At -O2 compilation times on Mac OS X are extremely slow for
|
||||
# Apple GCC 4.{0,2}. We must force GCC to use -O0 here in order
|
||||
# to get acceptable compilation times.
|
||||
|
||||
case $FULLARCH in *apple*darwin*)
|
||||
case $debug in true)
|
||||
case $COMPILER in gcc)
|
||||
OVERRIDE_OPTS="$OVERRIDE_OPTS -O0"
|
||||
esac
|
||||
esac
|
||||
esac
|
||||
|
||||
case $assemble in true)
|
||||
case $verbose in true)
|
||||
echo $AS $AS_OPTS "$@" ;;
|
||||
|
||||
Reference in New Issue
Block a user