Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-llvm: Commit

external/llvm


Commit MetaInfo

Revision9811a779896af8da97378a91db70b77a1331a6ab (tree)
Time2018-09-12 20:01:54
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Android: fix a possible building error

The .git/logs/HEAD doesn't always exist. In a new created repo, it may
cause the error:

error: external/llvm70/Android.bp:157:1: module "llvm70-gen-revision": source path external/llvm70/.git/logs/HEAD does not exist

Use wildcard to avoid that.

Change Summary

Incremental Difference

--- a/Android.bp
+++ b/Android.bp
@@ -157,7 +157,7 @@ llvm70_tblgen {
157157 genrule {
158158 name: "llvm70-gen-revision",
159159 out: ["llvm/Support/VCSRevision.h"],
160- srcs: [".git/logs/HEAD"],
160+ srcs: [".git/logs/HEAD*"],
161161 tool_files: ["git_sha1_gen.py"],
162162 cmd: "python $(location git_sha1_gen.py) --output $(out)",
163163 }
Show on old repository browser