aboutsummaryrefslogtreecommitdiffstats
path: root/android/androidmk.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-06-13 17:19:03 -0700
committerDan Willemsen <dwillemsen@google.com>2017-03-15 14:18:42 -0700
commit01a405a4810cfc33d8256cdb19882e16be2d3d64 (patch)
tree3c668dabc46065f365be107fa30e6408b1e56794 /android/androidmk.go
parent0e2d97b4b1d613ddd91f16fea9304c5f5d5d2517 (diff)
downloadbuild_soong-01a405a4810cfc33d8256cdb19882e16be2d3d64.tar.gz
build_soong-01a405a4810cfc33d8256cdb19882e16be2d3d64.tar.bz2
build_soong-01a405a4810cfc33d8256cdb19882e16be2d3d64.zip
Add LinuxBionic toolchain and switch
This adds a toolchain definition for LinuxBionic that only supports Clang/64-bit. It pulls pieces from the x86_linux_host and x86_64_device configs, and uses the android clang triple, with some manual overrides. To enable building this, set your soong.config file to: {"Host_bionic": true} Bug: 31559095 Test: out/soong/{Android,make-vars}-aosp_arm64.mk the same with or without host bionic turned on Test: No change to out/soong/build.ninja before/after this change Change-Id: Id97dda8bd9aa670c32aed31fbe6aaa8175e70b59
Diffstat (limited to 'android/androidmk.go')
-rw-r--r--android/androidmk.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/androidmk.go b/android/androidmk.go
index 793947e0..ec3abe11 100644
--- a/android/androidmk.go
+++ b/android/androidmk.go
@@ -164,6 +164,11 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
return err
}
+ // Make does not understand LinuxBionic
+ if amod.Os() == LinuxBionic {
+ return nil
+ }
+
if data.SubName != "" {
name += data.SubName
}