]> xenbits.xensource.com Git - freebsd.git/commitdiff
googletest: default-disable on all of MIPS for now
authorkevans <kevans@FreeBSD.org>
Wed, 18 Sep 2019 01:58:56 +0000 (01:58 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 18 Sep 2019 01:58:56 +0000 (01:58 +0000)
Parts of the fusefs tests trigger a bug in current versions of llvm: IR
representation of some routine for the MIPS targets is a function with a
large number of arguments. This then leads the compiler on an hour+ long
goose chase, which is OK if you build the current tree but less-so if you're
trying external toolchain or doing a universe build involving mips when it
eventually gets switched over to LLVM.

Better, accurate details can be found in LLVM PR43263.

share/mk/src.opts.mk

index 1ed38a2a076ec79ef8c104d21cb7b6dbeebd37ff..fac7f8d019db5dfeb2a9078d05b0d3b566a59249 100644 (file)
@@ -108,7 +108,6 @@ __DEFAULT_YES_OPTIONS = \
     GDB \
     GNU_DIFF \
     GNU_GREP \
-    GOOGLETEST \
     GPIO \
     HAST \
     HTML \
@@ -260,6 +259,15 @@ __TT=${TARGET}
 __TT=${MACHINE}
 .endif
 
+# Default GOOGLETEST to off for MIPS while LLVM PR 43263 is active.  Part
+# of the fusefs tests trigger excessively long compile times.  It does
+# eventually succeed, but this shouldn't be forced on those building by default.
+.if ${__TT} == "mips"
+__DEFAULT_NO_OPTIONS+= GOOGLETEST
+.else
+__DEFAULT_YES_OPTIONS+=        GOOGLETEST
+.endif
+
 # All supported backends for LLVM_TARGET_XXX
 __LLVM_TARGETS= \
                aarch64 \