diff options
author | Edward Z. Yang <ezyang@mit.edu> | 2013-09-15 14:07:59 -0700 |
---|---|---|
committer | Edward Z. Yang <ezyang@mit.edu> | 2013-09-15 23:53:59 -0700 |
commit | c65a3cdb90bd0f213e67899fb7ae65d3af90ecf9 (patch) | |
tree | e2f75dcf21f550578d55c725513d43ae3a199fcd /testsuite/tests/rts/Makefile | |
parent | 4141f8b994b095fa7fdda1d083b83d7afb6ba6ae (diff) | |
download | haskell-c65a3cdb90bd0f213e67899fb7ae65d3af90ecf9.tar.gz |
T5435 test improvements, see #5435 for details.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Diffstat (limited to 'testsuite/tests/rts/Makefile')
-rw-r--r-- | testsuite/tests/rts/Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/testsuite/tests/rts/Makefile b/testsuite/tests/rts/Makefile index 0b146a1afb..ae2a418b94 100644 --- a/testsuite/tests/rts/Makefile +++ b/testsuite/tests/rts/Makefile @@ -50,14 +50,25 @@ T5435_v: $(RM) T5435_c_v.o T5435_v$(exeext) '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c T5435.c -o T5435_c_v.o '$(TEST_HC)' $(TEST_HC_OPTS) -v0 T5435.hs -osuf v_o -o T5435_v$(exeext) - ./T5435_v T5435_c_v.o + ./T5435_v v ./T5435_c_v.o +# This doesn't work on Windows, which expects *no* file extension +# File extension here is not right for Mac OS X, where it should be dylib. +# Note that this is DLL-loading from a *static* executable; we probably +# also ought to provide the dynamic way via the usual channels. .PHONY: T5435_dyn T5435_dyn: $(RM) T5435_c_dyn.o T5435_dyn$(exeext) - '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -dynamic -fPIC -c T5435.c -o T5435_c_dyn.o - '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -dynamic -fPIC T5435.hs -osuf dyn_o -o T5435_dyn$(exeext) - ./T5435_dyn T5435_c_dyn.o + '$(TEST_HC)' $(filter-out -rtsopts, $(TEST_HC_OPTS)) -v0 -fPIC -shared -c T5435.c -osuf dyn_o -o T5435_c.so + '$(TEST_HC)' $(TEST_HC_OPTS) -v0 T5435.hs -osuf dyn_o -o T5435_dyn$(exeext) + ./T5435_dyn dyn ./T5435_c.so + +.PHONY: T5435_dyn_mingw32 +T5435_dyn_mingw32: + $(RM) T5435_c_dyn.o T5435_dyn$(exeext) + '$(TEST_HC)' $(filter-out -rtsopts, $(TEST_HC_OPTS)) -v0 -fPIC -shared -c T5435.c -osuf dyn_o -o T5435_c.dll + '$(TEST_HC)' $(TEST_HC_OPTS) -v0 T5435.hs -osuf dyn_o -o T5435_dyn$(exeext) + ./T5435_dyn dyn ./T5435_c T6006_setup : '$(TEST_HC)' $(TEST_HC_OPTS) -c T6006.hs |