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

git at git.haskell.org git at git.haskell.org
Sun May 7 19:38:19 UTC 2017


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

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

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

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

    libdw: testsuite infrastructure


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

4d787a72296cc4d2c4985a266f09bba6e4477580
 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