Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 90562ed

Browse files
author
Patrick Thomson
committed
Fixes for build time.
1 parent dcf4a57 commit 90562ed

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

cabal.project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
packages: . semantic-core
22

3+
jobs: $ncpus
4+
35
source-repository-package
46
type: git
57
location: https://github.com/joshvera/proto3-suite.git

semantic.cabal

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
cabal-version: 2.2
22
name: semantic
3-
version: 0.6.0
4-
synopsis: Framework and service for analyzing and diffing untrusted code.
5-
description: Please see README.md
3+
version: 0.6.0.0
4+
synopsis: Framework and executable for analyzing and diffing untrusted code.
5+
description: Semantic is a library for parsing, analyzing, and comparing source code across many languages.
66
homepage: http://github.com/github/semantic#readme
77
author: The Semantic authors
88
maintainer: [email protected]
@@ -224,7 +224,6 @@ library
224224
, Parsing.CMark
225225
, Parsing.Parser
226226
, Parsing.TreeSitter
227-
, Paths_semantic
228227
-- Rendering formats
229228
, Rendering.Graph
230229
, Rendering.JSON
@@ -272,7 +271,8 @@ library
272271
, Tags.Tagging
273272
-- Custom Prelude
274273
, Prologue
275-
274+
autogen-modules: Paths_semantic
275+
other-modules: Paths_semantic
276276
build-depends: base >= 4.12 && < 5
277277
, ansi-terminal ^>= 0.8.2
278278
, array ^>= 0.5.3.0
@@ -321,23 +321,18 @@ library
321321
, tree-sitter-typescript ^>= 0.1.0.0
322322
, tree-sitter-tsx ^>= 0.1.0.0
323323
, tree-sitter-java ^>= 0.1.0.0
324-
ghc-options: -Wall -Wmissing-export-lists -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing -j
324+
ghc-options: -Wall -Wmissing-export-lists -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing
325325
if flag(release)
326-
ghc-options: -Werror -O1
327326
cpp-options: -DCOMPUTE_GIT_SHA
328327
else
329-
ghc-options: -O0 +RTS -A128m -n2m -RTS
330-
ghc-prof-options: -fprof-auto
328+
ghc-options: +RTS -A128m -n2m -RTS
331329

332330
executable semantic
333331
import: haskell, dependencies, executable-flags
334332
hs-source-dirs: app
335333
main-is: Main.hs
336334
if flag(release)
337-
ghc-options: -O1
338335
cpp-options: -DCOMPUTE_GIT_SHA
339-
else
340-
ghc-options: -O0
341336
build-depends: base
342337
, semantic
343338

@@ -393,7 +388,6 @@ test-suite test
393388
, HUnit ^>= 1.6.0.0
394389
, leancheck >= 0.8 && <1
395390
, temporary
396-
ghc-options: -O0
397391
if flag(release)
398392
ghc-options: -dynamic
399393

@@ -413,7 +407,7 @@ benchmark evaluation
413407
hs-source-dirs: bench/evaluation
414408
type: exitcode-stdio-1.0
415409
main-is: Main.hs
416-
ghc-options: -static -O1
410+
ghc-options: -static
417411
build-depends: base
418412
, criterion
419413
, semantic

0 commit comments

Comments
 (0)