[commit: ghc] wip/libdw-prof: testsuite: Add config.libs_have_debug_info (e135024)
git at git.haskell.org
git at git.haskell.org
Sat May 6 22:26:12 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/libdw-prof
Link : http://ghc.haskell.org/trac/ghc/changeset/e1350246b7b718c5d2f95b8924145109cd1fdc7f/ghc
>---------------------------------------------------------------
commit e1350246b7b718c5d2f95b8924145109cd1fdc7f
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sun Oct 25 19:13:53 2015 +0100
testsuite: Add config.libs_have_debug_info
It's not entirely clear that this is the right way to do this since the
compiler we are testing may not have the same configuration as the
current tree. We could add a "Libraries have debugging information"
entry to `ghc --info` but this seems rather heavy just for the
testsuite.
>---------------------------------------------------------------
e1350246b7b718c5d2f95b8924145109cd1fdc7f
testsuite/driver/testlib.py | 3 +++
testsuite/mk/test.mk | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index ec0fc54..93a8f6e 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -410,6 +410,9 @@ def compiler_profiled( ):
def rts_with_libdw( ):
return config.rts_with_libdw
+def libs_have_debug_info( ):
+ return config.libs_have_debug_info
+
def compiler_debugged( ):
return config.compiler_debugged
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk
index a44e200..391883f 100644
--- a/testsuite/mk/test.mk
+++ b/testsuite/mk/test.mk
@@ -77,6 +77,12 @@ RUNTEST_OPTS += -e ghc_compiler_always_flags="'$(TEST_HC_OPTS)'"
RUNTEST_OPTS += -e config.compiler_debugged=$(GhcDebugged)
+ifeq "$(filter -g, $(GhcLibHcOps))" "-g"
+RUNTEST_OPTS += -e libs_have_debug_info=1
+else
+RUNTEST_OPTS += -e libs_have_debug_info=0
+endif
+
ifeq "$(GhcWithNativeCodeGen)" "YES"
RUNTEST_OPTS += -e ghc_with_native_codegen=1
else
More information about the ghc-commits
mailing list