Skip to content

Commit

Permalink
Fix T7037 on Win64
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Feb 5, 2013
1 parent 5527c5b commit 4bde383
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 6 additions & 1 deletion testsuite/tests/rts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,16 @@ T5423:
T6006_setup :
'$(TEST_HC)' $(TEST_HC_OPTS) -c T6006.hs

ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
T7037_CONST = const
else
T7037_CONST =
endif
.PHONY: T7037
T7037:
$(RM) 7037.o 7037.hi 7037$(exeext)
"$(TEST_HC)" $(TEST_HC_OPTS) T7037.hs -v0
"$(TEST_HC)" $(filter-out -rtsopts, $(TEST_HC_OPTS)) T7037_main.c -v0 -o T7037_main -no-hs-main
"$(TEST_HC)" -optc-DT7037_CONST=$(T7037_CONST) $(filter-out -rtsopts, $(TEST_HC_OPTS)) T7037_main.c -v0 -o T7037_main -no-hs-main
./T7037_main

T7040_ghci_setup :
Expand Down
5 changes: 1 addition & 4 deletions testsuite/tests/rts/T7037_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#include <unistd.h>

int main(int argc, char *argv[]) {
#ifdef __MINGW32__
const
#endif
char * args[2] = {"T7037", NULL};
T7037_CONST char * args[2] = {"T7037", NULL};
execv("./T7037", args);
}

0 comments on commit 4bde383

Please sign in to comment.