diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2019-05-30 09:06:48 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2019-05-30 09:06:48 +0000 |
commit | a7155c2e0b061212722faf5744cb3781e9a18aa3 (patch) | |
tree | 85909d95bf4225e5242b1334f4f28f777989c56f /libgomp/configure.ac | |
parent | b8148c42da02357784830917421d6091fbe69a83 (diff) | |
download | gcc-a7155c2e0b061212722faf5744cb3781e9a18aa3.zip gcc-a7155c2e0b061212722faf5744cb3781e9a18aa3.tar.gz gcc-a7155c2e0b061212722faf5744cb3781e9a18aa3.tar.bz2 |
Generalize getconf _NPROCESSORS_ONLN
libgomp:
* configure.ac: Call AX_COUNT_CPUS.
Substitute CPU_COUNT.
* testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
count fallback.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in, testsuite/Makefile.in: Regenerate.
config:
* ax_count_cpus.m4: New file.
From-SVN: r271769
Diffstat (limited to 'libgomp/configure.ac')
-rw-r--r-- | libgomp/configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgomp/configure.ac b/libgomp/configure.ac index f75c622..707d5cd 100644 --- a/libgomp/configure.ac +++ b/libgomp/configure.ac @@ -318,6 +318,10 @@ if test $enable_symvers = gnu; then [Define to 1 if GNU symbol versioning is used for libgomp.]) fi +# Determine cpu count to limit testsuite parallelism. +AX_COUNT_CPUS +AC_SUBST(CPU_COUNT) + # Get target configury. . ${srcdir}/configure.tgt CFLAGS="$save_CFLAGS $XCFLAGS" |