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
Glasgow Haskell Compiler
nofib
Commits
d7b19941
Commit
d7b19941
authored
Jan 29, 2002
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2002-01-29 11:04:05 by simonmar]
Allow the stdin file to be specified by setting STDIN_FILE.
parent
be7c3b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mk/target.mk
mk/target.mk
+6
-2
No files found.
mk/target.mk
View file @
d7b19941
...
...
@@ -36,6 +36,10 @@ endif
endif
ifeq
"$(STDIN_FILE)" ""
STDIN_FILE
=
$(
wildcard
$(NOFIB_PROG)
.stdin
)
endif
ifeq
"$(NoFibWithGHCi)" "YES"
STDIN
=
$(NOFIB_PROG)
.stdin.tmp
GHCI_HC_OPTS
=
$(
filter-out
-l
%
-Rghc-timing
,
$(HC_OPTS)
)
...
...
@@ -45,7 +49,7 @@ runtests ::
@
$(RM)
$(STDIN)
@
echo
":set args
$(PROG_ARGS)
"
>
$(STDIN)
@
echo
"Main.main"
>>
$(STDIN)
@
cat
/dev/null
$(
wildcard
$(NOFIB_PROG)
.stdin
)
>>
$(STDIN)
@
cat
/dev/null
$(
STDIN_FILE
)
>>
$(STDIN)
@
$(TIME)
$(RUNTEST)
$(GHC_INPLACE)
--interactive
-v0
-Wnot
\
-i
$(STDIN)
\
$(
addprefix
-o1
,
$(
wildcard
$(NOFIB_PROG)
.stdout
*
))
\
...
...
@@ -76,7 +80,7 @@ size :: $(NOFIB_PROG_WAY)
runtests
::
$(NOFIB_PROG_WAY) size
@
echo
==
nofib
==
$(NOFIB_PROG)
:
time
to run
$(NOFIB_PROG)
follows...
@
$(TIME)
$(RUNTEST)
./
$<
\
$(
addprefix
-i
,
$(
wildcard
$(NOFIB_PROG)
.stdin
))
\
$(
addprefix
-i
,
$(
STDIN_FILE
)
)
\
$(
addprefix
-o1
,
$(
wildcard
$(NOFIB_PROG)
.stdout
*
))
\
$(
addprefix
-o2
,
$(
wildcard
$(NOFIB_PROG)
.stderr
*
))
\
$(RUNTEST_OPTS)
$(PROG_ARGS)
...
...
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