This lets e.g. bindgen locate the correct instance of clang. Without it, header paths have to be specified manually, and it's a real hassle.
It also adds a property that can be configured either in the environment (RUST_ANDROID_GRADLE_AUTO_CONFIGURE_CLANG_SYS) or in local.properties (rust.autoConfigureClangSys) to enable/disable setting CLANG_PATH. If you leave it blank, we'll set on non-desktop builds.
Still needs a little more testing. I think the clang binaries we're using on windows aren't actually clang, so I'm not sure if this will actually work there.
This lets e.g. bindgen locate the correct instance of clang. Without it, header paths have to be specified manually, and it's a real hassle.
It also adds a property that can be configured either in the environment (
RUST_ANDROID_GRADLE_AUTO_CONFIGURE_CLANG_SYS
) or in local.properties (rust.autoConfigureClangSys
) to enable/disable setting CLANG_PATH. If you leave it blank, we'll set on non-desktop builds.Still needs a little more testing. I think the clang binaries we're using on windows aren't actually clang, so I'm not sure if this will actually work there.
Fixes the same thing as https://github.com/mozilla/application-services/pull/1980