summaryrefslogtreecommitdiff
path: root/rust/compiler.go
AgeCommit message (Collapse)Author
2019-10-07Merge "Remove old-style support for translated second architectures"Treehugger Robot
2019-10-07Merge "Fix defaults of BaseCompilerProperties"Chih-hung Hsieh
2019-10-03Separate InstallPath from OutputPathColin Cross
Create a new type InstallPath that is similar to OutputPath to differentiate intermediates output paths from installed output paths. RelPathString is a poorly defined, undocumented function that is primarily used to get an install path relative to out/soong to generate an equivalent install path for Make relative to $(OUT_DIR). Move it to InstallPath for now, and fix the one remaining user on OutputPath. Add a method to create an NDK install path so that ndk_sysroot.go doesn't have to do it manually with PathForOutput. Bug: 141877526 Test: m checkbuild Change-Id: I83c5a0bd1fd6c3dba8d3b6d20d039f64f353ddd5
2019-10-03Fix defaults of BaseCompilerPropertiesChih-Hung Hsieh
* Edition and Deny_warnings should not be set when constructing a BaseCompilerProperties, or the initialized values will reject values inherited from rust_defaults. * Use getEdition and getDenyWarnings to retrieve those properties with defaults from config. Bug: 141699953 Test: mm in rust projects Change-Id: Id1ae357caeaf656cd33732bf4e54920e206f4ead
2019-10-01Pass --remap-path-prefix to Rust builds.Joel Galenson
We need to pass --remap-path-prefix to Rust builds to ensure that they are reproducible across different paths. This adds that for both host and device builds. Test: Verify host and device builds are reproducible with different directories. Change-Id: I68ba31537b2332fd05613aa0fb00a1502d78e410
2019-09-27Deny rust warnings by default.Chih-Hung Hsieh
* "-D warnings" means "deny all warnings" and make them errors. * Modules with warnings should fix all warnings or use deny_warnings: false Bug: 141699953 Test: mm in projects with Rust modules Change-Id: I6310dee8e34b7780937e8fc1834016a04a943a2f
2019-09-24Add AArch64 device Rust toolchain.Ivan Lozano
Bug: 141207434 Test: build example rust device module. Change-Id: I0932a614942bf4a4d4b6c153fcc4fc79c7f202bd
2019-09-19Remove old-style support for translated second architecturesColin Cross
Translated second architectures now go in NativeBridgeArch instead of DeviceSecondaryArch. This reapplies I568046330abc002d4eed582cb999b62a5eaba790 with ctx.Config().HasMulitlibConflict() added to fix the NDK build, which has arm64, arm, x86_64, and x86 architectures enabled. Test: m checkbuild Test: OUT_DIR=out_ndk build/soong/scripts/build-ndk-prebuilts.sh Test: no change to build.ninja or Android-aosp_cf_x86_phone.mk Change-Id: Iadcafbd64bfb9579ae7c86914927c43a062b0c8e
2019-09-18Revert "Remove old-style support for translated second architectures"Colin Cross
This reverts commit fe6330c7d2d6102a0436da2892e71e3b490ac15c. Reason for revert: this was accidentally propping up NDK builds Bug: 141242600 Change-Id: Ie9f8e31479a74e8e9e14d720a5936da6b1d5d113
2019-09-18Remove old-style support for translated second architecturesColin Cross
Translated second architectures now go in NativeBridgeArch instead of DeviceSecondaryArch. Bug: 141242600 Test: m checkbuild Change-Id: I568046330abc002d4eed582cb999b62a5eaba790
2019-08-28Add Rust support to Soong.Ivan Lozano
Adds support to Soong for building rust modules. This currently only supports x86_64 device and x86 linux host targets. The functionality is sufficient to build crosvm. Bug: 136189233 Test: Test module builds. Test: crosvm builds. Change-Id: I6ea04615834a6d673578ab10ea1a2eb04259fe09