summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-07-23 10:01:35 +0000
committerIan Lynagh <igloo@earth.li>2007-07-23 10:01:35 +0000
commit1bd1fb932375bc4b065cc8de23f0d251e8075395 (patch)
tree4005d7c7a571c800fdda10d874e6f79485970a50 /rts
parentda6ac258d7d8a8b0e03423833cdc78c57d3d39f4 (diff)
downloadhaskell-1bd1fb932375bc4b065cc8de23f0d251e8075395.tar.gz
Add unreg/tables-next-code output to +RTS --info
Diffstat (limited to 'rts')
-rw-r--r--rts/Makefile2
-rw-r--r--rts/RtsFlags.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/rts/Makefile b/rts/Makefile
index 9ab9652b71..7b17ce3b86 100644
--- a/rts/Makefile
+++ b/rts/Makefile
@@ -132,6 +132,8 @@ RtsFlags_CC_OPTS += -DRtsWay=\"rts$(_way)\"
RtsFlags_CC_OPTS += -DHostPlatform=\"$(HOSTPLATFORM)\"
RtsFlags_CC_OPTS += -DBuildPlatform=\"$(BUILDPLATFORM)\"
RtsFlags_CC_OPTS += -DTargetPlatform=\"$(TARGETPLATFORM)\"
+RtsFlags_CC_OPTS += -DGhcUnregisterised=\"$(GhcUnregisterised)\"
+RtsFlags_CC_OPTS += -DGhcEnableTablesNextToCode=\"$(GhcEnableTablesNextToCode)\"
ifeq "$(way)" "mp"
SRC_HC_OPTS += -I$$PVM_ROOT/include
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 1e8654ddd8..4c1f739e89 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -684,12 +684,18 @@ error = rtsTrue;
}
else if (strequal("info",
&rts_argv[arg][2])) {
+ char *s;
printf("RTS info:\n");
printf("RTS from GHC " ProjectVersion "\n");
printf("RTS way " RtsWay "\n");
printf("Host platform " HostPlatform "\n");
printf("Build platform " BuildPlatform "\n");
printf("Target platform " TargetPlatform "\n");
+ s = strcmp(GhcUnregisterised, "YES") == 0 ? "un" : "";
+ printf("Compiler is %sregisterised\n", s);
+ s = strcmp(GhcEnableTablesNextToCode, "YES") == 0
+ ? "" : "not ";
+ printf("Tables are %snext to code\n", s);
exit(0);
}
else {