build(lib): allow overriding CFLAGS on the commandline
If you package tree-sitter for a distribution, the distribution is setting the CFLAGS which should be used for all packages. Allow those flags to be used. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
2e596e379e
commit
d4862ff9f7
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -19,7 +19,7 @@ OBJ := $(SRC:.c=.o)
|
|||
|
||||
# define default flags, and override to append mandatory flags
|
||||
ARFLAGS := rcs
|
||||
CFLAGS := -O3 -Wall -Wextra -Wshadow -pedantic
|
||||
CFLAGS ?= -O3 -Wall -Wextra -Wshadow -pedantic
|
||||
override CFLAGS += -std=c11 -fPIC -fvisibility=hidden
|
||||
override CFLAGS += -Ilib/src -Ilib/src/wasm -Ilib/include
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue