Skip to content

Commit ba82ce9

Browse files
committed
Quiet ar with ARFLAGS rather than > null
`ARFLAGS` is an implicit variable in GNU `make` (the `README` _specifies GNU_ `make`) and defaulted verbosely, so un-verbose-fy it is the more direct *and platform-agnostic* way to quiet `ar`.
1 parent 4f455dc commit ba82ce9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CPPFLAGS := -Iinclude $(CPPFLAGS)
1414
CFLAGS := -g -O2 -std=c99 -Wall -Werror -Wextra -Wpedantic -Wundef -Wconversion -Wno-missing-braces -fPIC -fvisibility=hidden $(CFLAGS)
1515
CC ?= cc
1616
AR ?= ar
17+
ARFLAGS ?= -r$(V0:1=v)
1718
WASI_SDK_PATH := /opt/wasi-sdk
1819

1920
MAKEDIRS ?= mkdir -p
@@ -37,7 +38,7 @@ build/libprism.$(SOEXT): $(SHARED_OBJECTS)
3738

3839
build/libprism.a: $(STATIC_OBJECTS)
3940
$(ECHO) "building $@ with $(AR)"
40-
$(Q) $(AR) $(ARFLAGS) $@ $(STATIC_OBJECTS) $(Q1:0=>/dev/null)
41+
$(Q) $(AR) $(ARFLAGS) $@ $(STATIC_OBJECTS)
4142

4243
javascript/src/prism.wasm: Makefile $(SOURCES) $(HEADERS)
4344
$(ECHO) "building $@"

0 commit comments

Comments
 (0)