Merge "Disallow the use of new unstable features" am: 5f6e2ade1f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2457065 Change-Id: I477da4afd355066147de2a1a6d962a1283b72ae9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -247,7 +247,13 @@ func transformSrctoCrate(ctx ModuleContext, main android.Path, deps PathDeps, fl
|
|||||||
if ctx.Config().IsEnvTrue("SOONG_RUSTC_INCREMENTAL") {
|
if ctx.Config().IsEnvTrue("SOONG_RUSTC_INCREMENTAL") {
|
||||||
incrementalPath := android.PathForOutput(ctx, "rustc").String()
|
incrementalPath := android.PathForOutput(ctx, "rustc").String()
|
||||||
|
|
||||||
rustcFlags = append(rustcFlags, "-C incremental="+incrementalPath)
|
rustcFlags = append(rustcFlags, "-Cincremental="+incrementalPath)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Disallow experimental features
|
||||||
|
modulePath := android.PathForModuleSrc(ctx).String()
|
||||||
|
if !(android.IsThirdPartyPath(modulePath) || strings.HasPrefix(modulePath, "prebuilts")) {
|
||||||
|
rustcFlags = append(rustcFlags, "-Zallow-features=\"default_alloc_error_handler,custom_inner_attributes,mixed_integer_ops,slice_internals\"")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Collect linker flags
|
// Collect linker flags
|
||||||
|
Reference in New Issue
Block a user