From ae4f1033cfe131fca9416e2993bda081e1f8c152 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Sun, 30 Dec 2018 10:57:46 +0100 Subject: Introduce NCG config flag and add helper ... for testing presence of NCG This commit adds a criterion for checking whether we can expect sensible output from --ddump-asm. --- testsuite/config/ghc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuite/config/ghc') diff --git a/testsuite/config/ghc b/testsuite/config/ghc index 247ddb8fd7..24294da119 100644 --- a/testsuite/config/ghc +++ b/testsuite/config/ghc @@ -158,6 +158,8 @@ def get_compiler_info(): s = re.sub('[\r\n]', '', s) rtsInfoDict = dict(eval(s)) + config.have_ncg = compilerInfoDict.get("Have native code generator", "NO") == "YES" + # external interpreter needs RTS linker support # If the field is not present (GHC 8.0 and earlier), assume we don't # have -fexternal-interpreter (though GHC 8.0 actually does) -- cgit v1.2.1