[Git][ghc/ghc][wip/testsuite-test-hc-opts] 2 commits: testsuite: Pass TEST_HC_OPTS to T24634

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Thu Oct 24 09:54:21 UTC 2024



Matthew Pickering pushed to branch wip/testsuite-test-hc-opts at Glasgow Haskell Compiler / GHC


Commits:
7869cd96 by Matthew Pickering at 2024-10-24T10:41:21+01:00
testsuite: Pass TEST_HC_OPTS to T24634

- - - - -
994923a7 by Matthew Pickering at 2024-10-24T10:54:00+01:00
testsuite: Pass TEST_HC_OPTS to T25166

- - - - -


2 changed files:

- testsuite/tests/bytecode/T24634/Makefile
- testsuite/tests/codeGen/should_compile/Makefile


Changes:

=====================================
testsuite/tests/bytecode/T24634/Makefile
=====================================
@@ -4,14 +4,14 @@ include $(TOP)/mk/test.mk
 
 # This case loads bytecode from the interface file written in the second invocation.
 T24634a:
-	$(TEST_HC) -c hello_c.c -o hello_c.o
-	$(TEST_HC) -c -fbyte-code-and-object-code -fno-omit-interface-pragmas Hello.hs
-	$(TEST_HC) -fprefer-byte-code -fbyte-code-and-object-code -fno-ignore-interface-pragmas hello_c.o Main.hs
+	'$(TEST_HC)' $(TEST_HC_OPTS) -c hello_c.c -o hello_c.o
+	'$(TEST_HC)' $(TEST_HC_OPTS) -c -fbyte-code-and-object-code -fno-omit-interface-pragmas Hello.hs
+	'$(TEST_HC)' $(TEST_HC_OPTS) -fprefer-byte-code -fbyte-code-and-object-code -fno-ignore-interface-pragmas hello_c.o Main.hs
 	./Main
 
 # This case uses the bytecode generated in 'runHscBackendPhase', not involving the interface, since 'Hello' is compiled
 # in the same invocation as 'Main'.
 T24634b:
-	$(TEST_HC) -c hello_c.c -o hello_c.o
-	$(TEST_HC) -fprefer-byte-code -fbyte-code-and-object-code -fno-ignore-interface-pragmas hello_c.o Hello.hs Main.hs
+	'$(TEST_HC)' $(TEST_HC_OPTS) -c hello_c.c -o hello_c.o
+	'$(TEST_HC)' $(TEST_HC_OPTS) -fprefer-byte-code -fbyte-code-and-object-code -fno-ignore-interface-pragmas hello_c.o Hello.hs Main.hs
 	./Main


=====================================
testsuite/tests/codeGen/should_compile/Makefile
=====================================
@@ -79,4 +79,4 @@ T17648:
 		grep -F 'f :: T GHC.Types.Int -> ()  [TagSig' >/dev/null
 
 T25166:
-	'$(TEST_HC)' -O2 -dno-typeable-binds -ddump-cmm T25166.hs | awk '/foo_closure/{flag=1}/}]/{flag=0}flag'
+	'$(TEST_HC)' $(TEST_HC_OPTS) -O2 -dno-typeable-binds -ddump-cmm T25166.hs | awk '/foo_closure/{flag=1}/}]/{flag=0}flag'



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/4652a1a4d9ba7d2656b4bf9d39b7ce3936b728b3...994923a7ed31db7a5bb4c1b46337c8ad48df3397

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/4652a1a4d9ba7d2656b4bf9d39b7ce3936b728b3...994923a7ed31db7a5bb4c1b46337c8ad48df3397
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241024/24e02d12/attachment-0001.html>


More information about the ghc-commits mailing list