Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
Former-commit-id: 31ac2f0
  • Loading branch information
Vanessa McHale committed Feb 7, 2018
1 parent 6237225 commit 68562e7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ats-pkg.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ats-pkg
version: 2.2.0.11
version: 2.2.0.12
synopsis: Package manager for ATS
description: A collection of scripts to simplify building ATS projects.
homepage: https://github.com/vmchale/atspkg#readme
Expand Down
13 changes: 13 additions & 0 deletions src/Language/ATS/Package/Tools.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Language.ATS.Package.Tools ( getCCompiler
) where

import Data.List
import Development.Shake.ATS

getCCompiler :: String -> CCompiler
getCCompiler "gcc" = GCC Nothing Nothing
getCCompiler "clang" = Clang
getCCompiler x
| "gcc" `isPrefixOf` x = GCC (Just $ drop 3 x) Nothing
| "gcc" `isSuffixOf` x = GCC Nothing (Just . reverse . drop 3 . reverse $ x)
| otherwise = Other x

0 comments on commit 68562e7

Please sign in to comment.