Skip to content

Commit 1a6d597

Browse files
jirutkaRX14
authored andcommittedApr 9, 2018
Makefile: Allow to extend FLAGS (#5860)
1 parent b1c30c2 commit 1a6d597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static ?= ## Enable static linking
2727
O := .build
2828
SOURCES := $(shell find src -name '*.cr')
2929
SPEC_SOURCES := $(shell find spec -name '*.cr')
30-
FLAGS := $(if $(release),--release )$(if $(stats),--stats )$(if $(progress),--progress )$(if $(threads),--threads $(threads) )$(if $(debug),-d )$(if $(static),--static )$(if $(LDFLAGS),--link-flags="$(LDFLAGS)" )
30+
override FLAGS += $(if $(release),--release )$(if $(stats),--stats )$(if $(progress),--progress )$(if $(threads),--threads $(threads) )$(if $(debug),-d )$(if $(static),--static )$(if $(LDFLAGS),--link-flags="$(LDFLAGS)" )
3131
SPEC_FLAGS := $(if $(verbose),-v )$(if $(junit_output),--junit_output $(junit_output) )
3232
EXPORTS := $(if $(release),,CRYSTAL_CONFIG_PATH="$(PWD)/src")
3333
SHELL = sh

0 commit comments

Comments
 (0)
Please sign in to comment.