Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Tobias Decking
GHC
Commits
da6ac258
Commit
da6ac258
authored
Jul 22, 2007
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a +RTS --info flag print various info; partially fixes trac #1517
parent
31cf07bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
rts/Makefile
rts/Makefile
+5
-0
rts/RtsFlags.c
rts/RtsFlags.c
+10
-0
No files found.
rts/Makefile
View file @
da6ac258
...
...
@@ -127,6 +127,11 @@ endif
# SRC_HC_OPTS += -fPIC
RtsMessages_CC_OPTS
+=
-DProjectVersion
=
\"
$(ProjectVersion)
\"
RtsFlags_CC_OPTS
+=
-DProjectVersion
=
\"
$(ProjectVersion)
\"
RtsFlags_CC_OPTS
+=
-DRtsWay
=
\"
rts
$(_way)
\"
RtsFlags_CC_OPTS
+=
-DHostPlatform
=
\"
$(HOSTPLATFORM)
\"
RtsFlags_CC_OPTS
+=
-DBuildPlatform
=
\"
$(BUILDPLATFORM)
\"
RtsFlags_CC_OPTS
+=
-DTargetPlatform
=
\"
$(TARGETPLATFORM)
\"
ifeq
"$(way)" "mp"
SRC_HC_OPTS
+=
-I
$$
PVM_ROOT/include
...
...
rts/RtsFlags.c
View file @
da6ac258
...
...
@@ -682,6 +682,16 @@ error = rtsTrue;
&
rts_argv
[
arg
][
2
]))
{
RtsFlags
.
MiscFlags
.
install_signal_handlers
=
rtsFalse
;
}
else
if
(
strequal
(
"info"
,
&
rts_argv
[
arg
][
2
]))
{
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
"
);
exit
(
0
);
}
else
{
errorBelch
(
"unknown RTS option: %s"
,
rts_argv
[
arg
]);
error
=
rtsTrue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment