Skip to content

Commit

Permalink
[NO-ISSUE] Put the release compilation options in their own file
Browse files Browse the repository at this point in the history
tchoutri committed Mar 26, 2024
1 parent 6ea2d1e commit e6c1682
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -37,3 +37,4 @@ design/node_modules
*.dump-timings
_build/cabal-store
storage/
cabal.project.release.freeze
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -4,8 +4,12 @@ init: ## Set up git hooks properly - needs calling once when cloning the repo
start: ## Start flora-server
@cabal run exe:flora-server

build: soufflé ## Build the backend
@cabal build -j -O1
build: soufflé ## Build the server
@cabal build -O1

build-release: soufflé ## Build the server for production
@cabal freeze --project-file cabal.project.release
@cabal build --project-file cabal.project.release

clean: ## Remove the cabal build artifacts
@rm cbits/*.cpp
8 changes: 8 additions & 0 deletions cabal.project.release
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import: ./cabal.project

tests: False
documentation: False
optimization: 2

package *
flags: +prod

0 comments on commit e6c1682

Please sign in to comment.