Support patching r25 NDK with quoting workaround on Windows #105
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.
This is an alternative fix for #92 that avoids hitting command line length limitations and avoid needing to use
cargo-ndk
as a spring board for runningclang
, which avoids needing temporary hard links or copying thecargo-ndk
binary to the target/ directory.By default cargo-ndk will just emit an error message if it recognises the current NDK needs a quoting workaround, and will also emit a warning suggesting to re-run with
--apply-ndk-quote-workaround
so thatcargo-ndk
can automatically apply the required workaround.If
--apply-ndk-quote-workaround
is passed thencargo ndk
will replace lines matchingif "%1" == "-cc1" goto :L
withif "%~1" == "-cc1" goto :L
in the CC and CXX.cmd
files which will avoid any double quotes when checking if the first argument == "-cc1".Fixes #104