gradle / gradle-native

The home of Gradle's support for natively compiled languages
https://blog.gradle.org/introducing-the-new-cpp-plugins
Apache License 2.0
92 stars 8 forks source link

Gcc build does not handle apostrophes in include paths #964

Open ThadHouse opened 5 years ago

ThadHouse commented 5 years ago

Using Gradle 5.0 (and 4.9), attempting to build a project with an apostrophe in its path fails. The gradle arg generator is not escaping the include path properly, which causes gcc to just remove the apostrophe, which fails. Attached are the output.txt and options.txt for the build. Working on a simple setup to reproduce, however a proven fix was to quote all include paths. Is there a way to make this happen currently?

output.txt options.txt

ThadHouse commented 5 years ago

Here is a project that reproduces the issue. Note it only repros on linux as far as I can tell.

The compiler is set to verbose mode so the include directories that the compiler internally sees can be shown.

ApostTest.zip