aboutsummaryrefslogtreecommitdiffstats
path: root/cc/ndk_sysroot.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-09-16 12:51:30 -0700
committerColin Cross <ccross@android.com>2016-09-16 12:53:59 -0700
commitf09c8437f9cb080d88475df0ad5988b5e221c30a (patch)
tree316bee0554440ab2d51e272dbe0410a007b9a529 /cc/ndk_sysroot.go
parent702b561ee585f01ccd523615e168bbb40196eead (diff)
downloadbuild_soong-f09c8437f9cb080d88475df0ad5988b5e221c30a.tar.gz
build_soong-f09c8437f9cb080d88475df0ad5988b5e221c30a.tar.bz2
build_soong-f09c8437f9cb080d88475df0ad5988b5e221c30a.zip
Make ndk.timestamp optional
Singleton rules need to manually specify Optional: true, or they will be built for any ninja invocation that has no targets specified. Test: m -j on tradefed build Change-Id: Ifc060b25bc32e664c48731eb8a0d963b73574591
Diffstat (limited to 'cc/ndk_sysroot.go')
-rw-r--r--cc/ndk_sysroot.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/ndk_sysroot.go b/cc/ndk_sysroot.go
index 04dce7b1..144d91c2 100644
--- a/cc/ndk_sysroot.go
+++ b/cc/ndk_sysroot.go
@@ -108,5 +108,6 @@ func (n *ndkSingleton) GenerateBuildActions(ctx blueprint.SingletonContext) {
Rule: android.Touch,
Outputs: []string{getNdkSysrootTimestampFile(ctx).String()},
Implicits: installPaths,
+ Optional: true,
})
}