mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
Revert "Figure out our extra lib dirs correctly."
This reverts commit fe4dcf2ae2f5f4118e3df6ae28d63b304482683c.
This commit is contained in:
parent
590c7ce272
commit
71d55d177e
25
Setup.hs
25
Setup.hs
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user