[commit: ghc] wip/libdw-prof: libdw: testsuite infrastructure (f5bb460)

git at git.haskell.org git at git.haskell.org
Sat May 6 22:40:28 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/libdw-prof
Link       : http://ghc.haskell.org/trac/ghc/changeset/f5bb460b67e3962643f2500afa58f190e1932768/ghc

>---------------------------------------------------------------

commit f5bb460b67e3962643f2500afa58f190e1932768
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Sep 1 22:51:55 2015 +0200

    libdw: testsuite infrastructure


>---------------------------------------------------------------

f5bb460b67e3962643f2500afa58f190e1932768
 testsuite/config/ghc        | 4 ++++
 testsuite/driver/testlib.py | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/testsuite/config/ghc b/testsuite/config/ghc
index 6296394..102ae7d 100644
--- a/testsuite/config/ghc
+++ b/testsuite/config/ghc
@@ -13,6 +13,8 @@ config.hpc                   = 'hpc'
 config.gs                    = 'gs'
 config.confdir               = '.'
 
+config.libs_have_debug_info = libs_have_debug_info
+
 # By default, the 'normal' and 'hpc' ways are enabled. In addition, certain
 # ways are enabled automatically if this GHC supports them. Ways that fall in
 # this group are 'optasm', 'optllvm', 'profasm', 'threaded1', 'threaded2',
@@ -184,6 +186,8 @@ def get_compiler_info():
     except:
         config.package_conf_cache_file = ''
 
+    config.rts_with_libdw = compilerInfoDict["RTS expects libdw"] == "YES"
+
     # See Note [WayFlags]
     if config.ghc_dynamic:
         config.ghc_th_way_flags = "-dynamic"
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 1f08f5b..ec0fc54 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -407,6 +407,9 @@ def unregisterised( ):
 def compiler_profiled( ):
     return config.compiler_profiled
 
+def rts_with_libdw( ):
+    return config.rts_with_libdw
+
 def compiler_debugged( ):
     return config.compiler_debugged
 



More information about the ghc-commits mailing list