faster fast builds
This commit is contained in:
parent
95a244d9c4
commit
b1e1043bdb
2 changed files with 8 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -10,11 +10,11 @@ build: $(all)
|
||||||
# We bypass cabal, and only run the main ghc --make command for a
|
# We bypass cabal, and only run the main ghc --make command for a
|
||||||
# fast development built. Note: Does not rebuild C libraries.
|
# fast development built. Note: Does not rebuild C libraries.
|
||||||
fast: dist/caballog
|
fast: dist/caballog
|
||||||
$$(grep 'ghc --make' dist/caballog | head -n 1 | sed 's/ -O / /')
|
$$(grep 'ghc --make' dist/caballog | head -n 1)
|
||||||
ln -sf dist/build/git-annex/git-annex git-annex
|
ln -sf dist/build/git-annex/git-annex git-annex
|
||||||
|
|
||||||
dist/caballog:
|
dist/caballog:
|
||||||
cabal configure -f-Production
|
cabal configure -f"-Production Fast"
|
||||||
cabal build -v2 | tee $@
|
cabal build -v2 | tee $@
|
||||||
|
|
||||||
Build/SysConfig.hs: configure.hs Build/TestConfig.hs Build/Configure.hs
|
Build/SysConfig.hs: configure.hs Build/TestConfig.hs Build/Configure.hs
|
||||||
|
|
|
@ -55,6 +55,9 @@ Flag DNS
|
||||||
Flag Production
|
Flag Production
|
||||||
Description: Enable production build (slower build; faster binary)
|
Description: Enable production build (slower build; faster binary)
|
||||||
|
|
||||||
|
Flag Fast
|
||||||
|
Description: Faster build; slower binary
|
||||||
|
|
||||||
Flag Android
|
Flag Android
|
||||||
Description: Building for Android
|
Description: Building for Android
|
||||||
Default: False
|
Default: False
|
||||||
|
@ -81,6 +84,9 @@ Executable git-annex
|
||||||
if flag(Production)
|
if flag(Production)
|
||||||
GHC-Options: -O2
|
GHC-Options: -O2
|
||||||
|
|
||||||
|
if flag(Fast)
|
||||||
|
GHC-Options: -O0
|
||||||
|
|
||||||
if flag(TestSuite)
|
if flag(TestSuite)
|
||||||
Build-Depends: testpack, HUnit
|
Build-Depends: testpack, HUnit
|
||||||
CPP-Options: -DWITH_TESTSUITE
|
CPP-Options: -DWITH_TESTSUITE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue