diff options
author | Steven Moreland <smoreland@google.com> | 2021-07-30 17:34:13 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2021-07-30 17:50:06 -0700 |
commit | 777a6cd5202ef1f753bdfaf1af59e1b05c85e741 (patch) | |
tree | 93556c8af498941b55ed14cff00a9421a942f367 /build/aidl_gen_rule.go | |
parent | d35b9524ead8a07c3cb01395cb093c1e88080fa1 (diff) | |
download | aidl-777a6cd5202ef1f753bdfaf1af59e1b05c85e741.tar.gz |
Report last .hash entry in getInterfaceHash
Bug: N/A (noticed while looking into another issue)
Test: aidl_integration_test
Change-Id: I8b290d46d3dc0de3d621d64b7deb2960b38d7a73
Diffstat (limited to 'build/aidl_gen_rule.go')
-rw-r--r-- | build/aidl_gen_rule.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/aidl_gen_rule.go b/build/aidl_gen_rule.go index cef38362..2bec6373 100644 --- a/build/aidl_gen_rule.go +++ b/build/aidl_gen_rule.go @@ -169,7 +169,7 @@ func (g *aidlGenRule) generateBuildActionsForSingleAidl(ctx android.ModuleContex if !strings.HasPrefix(baseDir, ctx.Config().BuildDir()) { hashFile := android.ExistentPathForSource(ctx, baseDir, ".hash") if hashFile.Valid() { - hash = "$$(read -r <" + hashFile.Path().String() + " hash extra; printf '%s' \"$$hash\")" + hash = "$$(tail -1 '" + hashFile.Path().String() + "')" implicits = append(implicits, hashFile.Path()) g.hashFile = hashFile.Path() |