In order to ensure we are using current platform Bionic for any platform Rust binaries, we need to build the sysroot in Soong. This will also enable us too hook the "test" crate if necessary. While both a dynamic and static sysroot are available, on device only a dynamic sysroot will be injected. On host, we continue using the sysroot used to build the compiler as before. Bug: 139486496 Change-Id: I127377e5b056610ceb5015a34d266250320fbc31
23 lines
374 B
Go
23 lines
374 B
Go
package config
|
|
|
|
var (
|
|
RustAllowedPaths = []string{
|
|
"external/rust",
|
|
"external/crosvm",
|
|
"external/adhd",
|
|
"prebuilts/rust",
|
|
}
|
|
|
|
RustModuleTypes = []string{
|
|
"rust_binary",
|
|
"rust_binary_host",
|
|
"rust_library",
|
|
"rust_library_dylib",
|
|
"rust_library_rlib",
|
|
"rust_library_host",
|
|
"rust_library_host_dylib",
|
|
"rust_library_host_rlib",
|
|
"rust_proc_macro",
|
|
}
|
|
)
|