Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1ca35ee authored by Chris Wailes's avatar Chris Wailes Committed by Automerger Merge Worker
Browse files

Merge "Set incremental or codegen-units, not both" into main am: ed75eef9...

Merge "Set incremental or codegen-units, not both" into main am: ed75eef9 am: 72fd3d4e am: 25cb5d5d

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2786923



Change-Id: Ie5feba894ec2ab32265dce301775e8f58c6b51c1
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 809f6bd1 25cb5d5d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -279,6 +279,8 @@ func transformSrctoCrate(ctx ModuleContext, main android.Path, deps PathDeps, fl
		incrementalPath := android.PathForOutput(ctx, "rustc").String()

		rustcFlags = append(rustcFlags, "-C incremental="+incrementalPath)
	} else {
		rustcFlags = append(rustcFlags, "-C codegen-units=1")
	}

	// Disallow experimental features
+1 −2
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ var (
	GlobalRustFlags = []string{
		"-Z stack-protector=strong",
		"-Z remap-cwd-prefix=.",
		"-C codegen-units=1",
		"-C debuginfo=2",
		"-C opt-level=3",
		"-C relocation-model=pic",