fix(build): compilation on macos when including nim-nat-traversal #1084
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.
Removes the
VERSION
rename toVERSION_temp
in the Makefile, instead relying on a change innim-nat-traversal
.The change in
nim-nat-traversal
uses-iqoute
to include thenim-nat-traversal/vendor/libnatpmp-upstream
directory in the search paths.-iquote
will match thevendor/libnatpmp-upstream/VERSION
file for#include "version"
and not#include <version>
, the latter being what is included by the macos sdk and was causing issues with-I
. The gcc 14.2 docs describe how-iquote
alleviates this issue:For more info, please see status-im/nim-nat-traversal#34.
NOTE: This PR relies on a branch of
nim-nat-traversal
due to status-im/nim-nat-traversal#34. It's probably best to wait for that to be merged first, before merging this PR.