1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 07:25:44 +03:00

Revert "Figure out our extra lib dirs correctly."

This reverts commit fe4dcf2ae2f5f4118e3df6ae28d63b304482683c.
This commit is contained in:
Rob Rix 2015-12-17 16:34:28 -05:00
parent 590c7ce272
commit 71d55d177e
2 changed files with 2 additions and 25 deletions

View File

@ -1,25 +1,2 @@
import Data.Maybe
import qualified Distribution.PackageDescription as P
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo
import Distribution.Simple.Setup
import System.Directory
main = defaultMainWithHooks simpleUserHooks { confHook = conf }
conf :: (P.GenericPackageDescription, P.HookedBuildInfo) -> ConfigFlags -> IO LocalBuildInfo
conf x flags = do
localBuildInfo <- confHook simpleUserHooks x flags
let packageDescription = localPkgDescr localBuildInfo
library = fromJust $ P.library packageDescription
libraryBuildInfo = P.libBuildInfo library in do
dir <- getCurrentDirectory
return localBuildInfo {
localPkgDescr = packageDescription {
P.library = Just $ library {
P.libBuildInfo = libraryBuildInfo {
P.extraLibDirs = (dir ++ "/prototype/External/tree-sitter/out/Release") : P.extraLibDirs libraryBuildInfo
}
}
}
}
main = defaultMain

View File

@ -7,7 +7,7 @@ author: Rob Rix, Josh Vera
maintainer: rob.rix@github.com
copyright: 2015 GitHub
category: Web
build-type: Custom
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10