aboutsummaryrefslogtreecommitdiffstats
path: root/exec.go
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-04-07 00:03:03 +0900
committerFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-04-07 00:03:03 +0900
commitf04610d32731c6502e2f48d915d2fe71ff6bde0e (patch)
tree38dacd1562b16fc69416b161dac4ff739eee88f3 /exec.go
parentbc372ce02b7b261df3021e626c22736abcc74ae3 (diff)
downloadandroid_build_kati-f04610d32731c6502e2f48d915d2fe71ff6bde0e.tar.gz
android_build_kati-f04610d32731c6502e2f48d915d2fe71ff6bde0e.tar.bz2
android_build_kati-f04610d32731c6502e2f48d915d2fe71ff6bde0e.zip
fix implicit_pattern_rule_chain
Diffstat (limited to 'exec.go')
-rw-r--r--exec.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/exec.go b/exec.go
index e11d715..cc68338 100644
--- a/exec.go
+++ b/exec.go
@@ -34,6 +34,10 @@ func getTimestamp(filename string) int64 {
}
func (ex *Executor) exists(target string) bool {
+ _, present := ex.rules[target]
+ if present {
+ return true
+ }
rule, present := ex.rules[".PHONY"]
if present {
for _, input := range rule.inputs {
@@ -239,7 +243,7 @@ func (ex *Executor) build(vars *VarTab, output string) (int64, error) {
}
for _, input := range rule.orderOnlyInputs {
- if ex.exists(input) {
+ if exists(input) {
continue
}
ts, err := ex.build(vars, input)
@@ -272,6 +276,7 @@ func (ex *Executor) build(vars *VarTab, output string) (int64, error) {
ev.filename = rule.filename
ev.lineno = rule.cmdLineno
var cmds []string
+ Log("Building: %s cmds:%q", output, rule.cmds)
for _, cmd := range rule.cmds {
if strings.IndexByte(cmd, '$') < 0 {
// fast path.