-
Notifications
You must be signed in to change notification settings - Fork 184
Disable GNU make implicit variables and Quiet ar with ARFLAGS rather than > null
#2711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -15,6 +15,7 @@ CFLAGS := -g -O2 -std=c99 -Wall -Werror -Wextra -Wpedantic -Wundef -Wconversion | |||
| JAVA_WASM_CFLAGS := -g -Oz -std=c99 -Wall -Werror -Wextra -Wpedantic -Wundef -Wconversion -Wno-missing-braces -fPIC -fvisibility=hidden -Wimplicit-fallthrough $(JAVA_WASM_CFLAGS) | ||||
| CC ?= cc | ||||
| AR ?= ar | ||||
| ARFLAGS ?= -r$(V0:1=v) | ||||
| WASI_SDK_PATH := /opt/wasi-sdk | ||||
|
|
||||
| MAKEDIRS ?= mkdir -p | ||||
|
|
@@ -38,7 +39,7 @@ build/libprism.$(SOEXT): $(SHARED_OBJECTS) | |||
|
|
||||
| build/libprism.a: $(STATIC_OBJECTS) | ||||
| $(ECHO) "building $@ with $(AR)" | ||||
| $(Q) $(AR) $(ARFLAGS) $@ $(STATIC_OBJECTS) $(Q1:0=>/dev/null) | ||||
| $(Q) $(AR) $(ARFLAGS) $@ $(STATIC_OBJECTS) | ||||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A quick text find shows that this was the only recipe where Line 6 in 17762fa
(I’m a novice in C-land; if the entire set of Vs and Qs is a convention, introduce them to me.)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Writing to Null has always been questionable as we could simply not supply Alternate approaches include:
|
||||
|
|
||||
| javascript/src/prism.wasm: Makefile $(SOURCES) $(HEADERS) | ||||
| $(ECHO) "building $@" | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to #2716, the original
?=s were once a workaround for #2716.That issue’s root cause’s separately fixed and 7c2461f purged its related
extconf.rbcode. Like this PR, I wonder if those lines are still necessary?