mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
tools: fix ugly warnings after using multiple cabal versions
This commit is contained in:
parent
3bfc5f7743
commit
eaadc927a7
6
Makefile
6
Makefile
@ -191,10 +191,10 @@ WARNINGS:=\
|
||||
# GHCMEMFLAGS= #+RTS -M200m -RTS
|
||||
|
||||
# ghc builds need the macro definitions generated by cabal
|
||||
# from cabal's dist or dist-sandbox, hopefully there's just one
|
||||
# from cabal's dist or dist-sandbox dir, hopefully there's just one
|
||||
#CABALMACROSFLAGS=-optP-include -optP hledger/dist*/build/autogen/cabal_macros.h
|
||||
# from stack's dist, hopefully there's just one
|
||||
CABALMACROSFLAGS=-optP-include -optP hledger/.stack-work/dist/*/*/build/autogen/cabal_macros.h
|
||||
# from stack's dist dir, hopefully there's just one. If not (after cabal upgrade), will get warnings. Maybe obsolete ?
|
||||
#CABALMACROSFLAGS=-optP-include -optP hledger/.stack-work/dist/*/*/build/autogen/cabal_macros.h
|
||||
|
||||
BUILDFLAGS1:=-rtsopts $(WARNINGS) $(INCLUDEPATHS) $(PREFERMACUSRLIBFLAGS) $(GHCMEMFLAGS) $(CABALMACROSFLAGS) -DPATCHLEVEL=$(PATCHLEVEL) -DDEVELOPMENT
|
||||
BUILDFLAGS:=$(BUILDFLAGS1) -DVERSION='"$(VERSION)dev"'
|
||||
|
Loading…
Reference in New Issue
Block a user