[commit: ghc] master: Testsuite: expose TEST_CC (path to gcc) (0177c85)
git at git.haskell.org
git at git.haskell.org
Sat Jul 9 16:19:25 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/0177c85b614618039578d6670453e030eaf49846/ghc
>---------------------------------------------------------------
commit 0177c85b614618039578d6670453e030eaf49846
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Sat Jul 9 14:03:51 2016 +0200
Testsuite: expose TEST_CC (path to gcc)
Reviewed by: Phyx
Differential Revision: https://phabricator.haskell.org/D2394
>---------------------------------------------------------------
0177c85b614618039578d6670453e030eaf49846
testsuite/mk/ghc-config.hs | 1 +
testsuite/tests/rts/T11223/Makefile | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/testsuite/mk/ghc-config.hs b/testsuite/mk/ghc-config.hs
index 4ca3d30..84f1523 100644
--- a/testsuite/mk/ghc-config.hs
+++ b/testsuite/mk/ghc-config.hs
@@ -28,6 +28,7 @@ main = do
getGhcFieldOrDefault fields "GhcProfiled" "GHC Profiled" "NO"
getGhcFieldProgWithDefault fields "AR" "ar command" "ar"
getGhcFieldProgWithDefault fields "LLC" "LLVM llc command" "llc"
+ getGhcFieldProgWithDefault fields "TEST_CC" "C compiler command" "gcc"
let pkgdb_flag = case lookup "Project version" fields of
Just v
diff --git a/testsuite/tests/rts/T11223/Makefile b/testsuite/tests/rts/T11223/Makefile
index 4920704..c0d8420 100644
--- a/testsuite/tests/rts/T11223/Makefile
+++ b/testsuite/tests/rts/T11223/Makefile
@@ -6,7 +6,7 @@ include $(TOP)/mk/test.mk
# Testing RTS linker object resolution
#
-CC=gcc
+CC=$(TEST_CC)
.PHONY: t_11223_simple_link
t_11223_simple_link:
More information about the ghc-commits
mailing list