Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • testsuite/mk/test.mk
    ... ... @@ -109,9 +109,11 @@ endif
    109 109
     HAVE_GDB := $(shell if gdb --version > /dev/null 2> /dev/null; then echo YES; else echo NO; fi)
    
    110 110
     HAVE_READELF := $(shell if readelf --version > /dev/null 2> /dev/null; then echo YES; else echo NO; fi)
    
    111 111
     
    
    112
    -# we need a better way to find which backend is selected and if --check flag is
    
    113
    -# used
    
    114
    -BIGNUM_GMP := $(shell "$(GHC_PKG)" field ghc-bignum exposed-modules | grep GMP)
    
    112
    +# Detect whether the fast (GMP) bignum backend is in use. The GMP backend module
    
    113
    +# in ghc-internal is hidden, so we look instead for the gmp library it links
    
    114
    +# against: GMP_LIBS adds gmp to ghc-internal's extra-libraries only on a GMP
    
    115
    +# build.
    
    116
    +BIGNUM_GMP := $(shell "$(GHC_PKG)" field ghc-internal extra-libraries 2>/dev/null | grep gmp)
    
    115 117
     
    
    116 118
     ifeq "$(filter thr, $(GhcRTSWays))" "thr"
    
    117 119
     RUNTEST_OPTS += -e config.ghc_with_threaded_rts=True