nodejs{12,14,16,18,20,22}: Use configure.cxxflags-append correctly #27285
+25
−43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
devel/nodejs* ports use
configure.cxx-append
to add C++ compiler flags. They also usecompiler.blacklist-append
to blacklist incompatible XCode versions. In such a situation, ifcompiler.blacklist-append
is not placed before the firstconfigure.cxx-append
, on Mojave it results inconfigure.cxx
not being set to the fallback compiler whileconfigure.cc
is correctly using the fallback compiler.Failure logs (choose an OS version in the Port Health panel, look for
CXX=
, compare withCC=
):Solution: use
configure.cxxflags-append
instead.While I was looking at this, I also re-enabled ccache usage, as the reports on V8 not liking ccache seem to be really outdated.
Type(s)
Tested on
macOS 10.14.6 18G9323 x86_64
Command Line Tools 10.3.0.0.1.1562985497
Verification
Have you
port lint
?sudo port test
?sudo port -vst install
?