Skip to content

Commit d226332

Browse files
ParadoxV5kddnewton
authored andcommitted
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 3496625 commit d226332

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

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

2021
MAKEDIRS ?= mkdir -p
@@ -38,7 +39,7 @@ build/libprism.$(SOEXT): $(SHARED_OBJECTS)
3839

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

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

0 commit comments

Comments
 (0)