Nofib fails when passing EXTRA_RUNTEST_OPTS containing strings starting with -i
Summary
When trying to pass EXTRA_RUNTEST_OPTS it's impossible to pass the io-manager flag.
-H works:
$ make clean && make boot HC=/e/ghc_phyx/_build/stage1/bin/ghc.exe && make HC=/e/ghc_phyx/_build/stage1/bin/ghc.exe NoFibRuns=1 EXTRA_HC_OPTS="+RTS -io-manger=posix -RTS" EXTRA_RUNTEST_OPTS="+RTS -H100M -RTS"
...
../../runstdtest/runstdtest ./binary-trees -o1 binary-trees.stdout -o1 binary-trees.stdout -ghc-timing +RTS -V0 -RTS +RTS -K128M -H200m -RTS +RTS -H100M -RTS 50 13;
When passing EXTRA_RUNTEST_OPTS="+RTS -io-manager=native -RTS"
the glorious perl script interprets this as us wanting to pass the input file o-manager=native
with predictable results:
make HC=/e/ghc_phyx/_build/stage1/bin/ghc.exe NoFibRuns=1 EXTRA_HC_OPTS="+RTS -io-manger=posix -RTS" EXTRA_RUNTEST_OPTS="+RTS -io-manager=native -RTS"
...
../../runstdtest/runstdtest ./binary-trees -o1 binary-trees.stdout -o1 binary-trees.stdout -ghc-timing +RTS -V0 -RTS +RTS -K128M -H200m -RTS +RTS -io-manager=native -RTS 50 13;
runstdtest: bogus -i input file: o-manager=native
make: *** [../../mk/target.mk:101: runtests] Error 1
Steps to reproduce
See above.
Expected behavior
I would expected input files to bei their own variable.