Merge "Set incremental or codegen-units, not both" into main
This commit is contained in:
@@ -279,6 +279,8 @@ func transformSrctoCrate(ctx ModuleContext, main android.Path, deps PathDeps, fl
|
|||||||
incrementalPath := android.PathForOutput(ctx, "rustc").String()
|
incrementalPath := android.PathForOutput(ctx, "rustc").String()
|
||||||
|
|
||||||
rustcFlags = append(rustcFlags, "-C incremental="+incrementalPath)
|
rustcFlags = append(rustcFlags, "-C incremental="+incrementalPath)
|
||||||
|
} else {
|
||||||
|
rustcFlags = append(rustcFlags, "-C codegen-units=1")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disallow experimental features
|
// Disallow experimental features
|
||||||
|
@@ -44,7 +44,6 @@ var (
|
|||||||
GlobalRustFlags = []string{
|
GlobalRustFlags = []string{
|
||||||
"-Z stack-protector=strong",
|
"-Z stack-protector=strong",
|
||||||
"-Z remap-cwd-prefix=.",
|
"-Z remap-cwd-prefix=.",
|
||||||
"-C codegen-units=1",
|
|
||||||
"-C debuginfo=2",
|
"-C debuginfo=2",
|
||||||
"-C opt-level=3",
|
"-C opt-level=3",
|
||||||
"-C relocation-model=pic",
|
"-C relocation-model=pic",
|
||||||
|
Reference in New Issue
Block a user