Commit 6072c113 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Use a hopefully more robust method of determining the gcc version

parent f738058d
......@@ -636,12 +636,7 @@ alexProgram = (simpleProgram "alex") {
gccProgram :: Program
gccProgram = (simpleProgram "gcc") {
programFindVersion = findProgramVersion "--version" $ \str ->
-- Invoking "gcc --version" gives a string like
-- "gcc (GCC) 4.1.2 (Gentoo 4.1.2)"
case words str of
(_:_:ver:_) -> ver
_ -> ""
programFindVersion = findProgramVersion "-dumpversion" id
}
ranlibProgram :: Program
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment