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

Commit 07fd7e32 authored by Ivan Lozano's avatar Ivan Lozano
Browse files

rust: Add a default cfg indicating an AOSP build

This adds a cfg flag `android_platform` which can be used
to indicate there's some conditional compilation need specific to
AOSP.

Test: New flag is emitted on builds
Change-Id: I833a7d68db2dad7ab2d32a5eb51d764f0d66b849
parent 48d11dde
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -53,6 +53,9 @@ var (
		"--color=always",
		"-Z dylib-lto",
		"-Z link-native-libraries=no",

		// cfg flag to indicate that we are building in AOSP with Soong
		"--cfg soong",
	}

	LinuxHostGlobalLinkFlags = []string{