Commit 6fff2166 authored by thoughtpolice's avatar thoughtpolice
Browse files

Add a --no-dph flag to ./validate



Under --slow, the DPH tests can take incredible amounts of time to run.
And on some platforms, we may not have a fully working linker in order
to build DPH etc anyway. So this provides a way to turn it off.

This flag is off by default, but should your specify it, you can skip
the required 'dph' libraries in a build, should you remove them from the
source tree.
Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
parent 9e133b9d
...@@ -22,6 +22,9 @@ Flags: ...@@ -22,6 +22,9 @@ Flags:
--fast Omit dyn way, omit binary distribution --fast Omit dyn way, omit binary distribution
--slow Build stage2 with -DDEBUG. --slow Build stage2 with -DDEBUG.
2008-07-01: 14% slower than the default. 2008-07-01: 14% slower than the default.
--no-dph: Skip requiring libraries/dph. In --slow mode, these tests
can take a substantial amount of time, and on some platforms
with broken linkers, we don't want to try compiling it.
--help shows this usage help. --help shows this usage help.
Set environment variable 'CPUS' to number of cores, to exploit Set environment variable 'CPUS' to number of cores, to exploit
...@@ -36,6 +39,7 @@ no_clean=0 ...@@ -36,6 +39,7 @@ no_clean=0
testsuite_only=0 testsuite_only=0
hpc=NO hpc=NO
speed=NORMAL speed=NORMAL
skip_dph=0
while [ $# -gt 0 ] while [ $# -gt 0 ]
do do
...@@ -58,6 +62,9 @@ do ...@@ -58,6 +62,9 @@ do
--normal) --normal)
speed=NORMAL speed=NORMAL
;; ;;
--no-dph)
skip_dph=1
;;
--help) --help)
show_help show_help
exit 0;; exit 0;;
...@@ -115,7 +122,11 @@ if [ $no_clean -eq 0 ]; then ...@@ -115,7 +122,11 @@ if [ $no_clean -eq 0 ]; then
INSTDIR=`cygpath -m "$INSTDIR"` INSTDIR=`cygpath -m "$INSTDIR"`
fi fi
/usr/bin/perl -w boot --validate --required-tag=dph if [ $skip_dph -eq 1 ]; then
/usr/bin/perl -w boot --validate
else
/usr/bin/perl -w boot --validate --required-tag=dph
fi
./configure --prefix="$INSTDIR" $config_args ./configure --prefix="$INSTDIR" $config_args
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment