summaryrefslogtreecommitdiff
path: root/compiler/main/CmdLineParser.hs
diff options
context:
space:
mode:
authorGeoffrey Mainland <gmainlan@microsoft.com>2013-09-16 12:27:37 -0400
committerGeoffrey Mainland <gmainlan@microsoft.com>2013-09-22 22:34:00 -0400
commit1ed36c54d50e0e97aee95d15d674f95cabab0b77 (patch)
tree3f3b2ebd3459328dbcad5e3f03eaaea85edbef76 /compiler/main/CmdLineParser.hs
parentd2b95264c97b3d7786b359fbf04fb297a160daa3 (diff)
downloadhaskell-1ed36c54d50e0e97aee95d15d674f95cabab0b77.tar.gz
Enable -msse to be specified by itself.
This sets the SSE "version" to 1.0.
Diffstat (limited to 'compiler/main/CmdLineParser.hs')
-rw-r--r--compiler/main/CmdLineParser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/CmdLineParser.hs b/compiler/main/CmdLineParser.hs
index 6681186246..fef2701bcd 100644
--- a/compiler/main/CmdLineParser.hs
+++ b/compiler/main/CmdLineParser.hs
@@ -220,7 +220,7 @@ processOneArg opt_kind rest arg args
Just min <- parseInt min_s -> Right (f maj min, args)
| [maj_s] <- split '.' rest_no_eq,
Just maj <- parseInt maj_s -> Right (f maj 0, args)
- | otherwise -> Left ("malformed version argument in " ++ dash_arg)
+ | otherwise -> Right (f 1 0, args)
findArg :: [Flag m] -> String -> Maybe (String, OptKind m)