From: Chih-Wei Huang Date: Wed, 12 Sep 2018 11:01:54 +0000 (+0800) Subject: Android: fix a possible building error X-Git-Tag: android-x86-8.1-r1 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-llvm.git;a=commitdiff_plain;h=refs%2Ftags%2Fandroid-x86-8.1-r4 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. --- diff --git a/Android.bp b/Android.bp index 78932870356..eac4af61401 100644 --- a/Android.bp +++ b/Android.bp @@ -157,7 +157,7 @@ llvm70_tblgen { genrule { name: "llvm70-gen-revision", out: ["llvm/Support/VCSRevision.h"], - srcs: [".git/logs/HEAD"], + srcs: [".git/logs/HEAD*"], tool_files: ["git_sha1_gen.py"], cmd: "python $(location git_sha1_gen.py) --output $(out)", }