1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Fixes for build time.

This commit is contained in:
Patrick Thomson 2019-06-10 15:03:47 -04:00
parent dcf4a577f7
commit 90562edd53
2 changed files with 10 additions and 14 deletions

View File

@ -1,5 +1,7 @@
packages: . semantic-core packages: . semantic-core
jobs: $ncpus
source-repository-package source-repository-package
type: git type: git
location: https://github.com/joshvera/proto3-suite.git location: https://github.com/joshvera/proto3-suite.git

View File

@ -1,8 +1,8 @@
cabal-version: 2.2 cabal-version: 2.2
name: semantic name: semantic
version: 0.6.0 version: 0.6.0.0
synopsis: Framework and service for analyzing and diffing untrusted code. synopsis: Framework and executable for analyzing and diffing untrusted code.
description: Please see README.md description: Semantic is a library for parsing, analyzing, and comparing source code across many languages.
homepage: http://github.com/github/semantic#readme homepage: http://github.com/github/semantic#readme
author: The Semantic authors author: The Semantic authors
maintainer: opensource+semantic@github.com maintainer: opensource+semantic@github.com
@ -224,7 +224,6 @@ library
, Parsing.CMark , Parsing.CMark
, Parsing.Parser , Parsing.Parser
, Parsing.TreeSitter , Parsing.TreeSitter
, Paths_semantic
-- Rendering formats -- Rendering formats
, Rendering.Graph , Rendering.Graph
, Rendering.JSON , Rendering.JSON
@ -272,7 +271,8 @@ library
, Tags.Tagging , Tags.Tagging
-- Custom Prelude -- Custom Prelude
, Prologue , Prologue
autogen-modules: Paths_semantic
other-modules: Paths_semantic
build-depends: base >= 4.12 && < 5 build-depends: base >= 4.12 && < 5
, ansi-terminal ^>= 0.8.2 , ansi-terminal ^>= 0.8.2
, array ^>= 0.5.3.0 , array ^>= 0.5.3.0
@ -321,23 +321,18 @@ library
, tree-sitter-typescript ^>= 0.1.0.0 , tree-sitter-typescript ^>= 0.1.0.0
, tree-sitter-tsx ^>= 0.1.0.0 , tree-sitter-tsx ^>= 0.1.0.0
, tree-sitter-java ^>= 0.1.0.0 , tree-sitter-java ^>= 0.1.0.0
ghc-options: -Wall -Wmissing-export-lists -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing -j ghc-options: -Wall -Wmissing-export-lists -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing
if flag(release) if flag(release)
ghc-options: -Werror -O1
cpp-options: -DCOMPUTE_GIT_SHA cpp-options: -DCOMPUTE_GIT_SHA
else else
ghc-options: -O0 +RTS -A128m -n2m -RTS ghc-options: +RTS -A128m -n2m -RTS
ghc-prof-options: -fprof-auto
executable semantic executable semantic
import: haskell, dependencies, executable-flags import: haskell, dependencies, executable-flags
hs-source-dirs: app hs-source-dirs: app
main-is: Main.hs main-is: Main.hs
if flag(release) if flag(release)
ghc-options: -O1
cpp-options: -DCOMPUTE_GIT_SHA cpp-options: -DCOMPUTE_GIT_SHA
else
ghc-options: -O0
build-depends: base build-depends: base
, semantic , semantic
@ -393,7 +388,6 @@ test-suite test
, HUnit ^>= 1.6.0.0 , HUnit ^>= 1.6.0.0
, leancheck >= 0.8 && <1 , leancheck >= 0.8 && <1
, temporary , temporary
ghc-options: -O0
if flag(release) if flag(release)
ghc-options: -dynamic ghc-options: -dynamic
@ -413,7 +407,7 @@ benchmark evaluation
hs-source-dirs: bench/evaluation hs-source-dirs: bench/evaluation
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
main-is: Main.hs main-is: Main.hs
ghc-options: -static -O1 ghc-options: -static
build-depends: base build-depends: base
, criterion , criterion
, semantic , semantic