aboutsummaryrefslogtreecommitdiffstats
path: root/dep.go
Commit message (Collapse)AuthorAgeFilesLines
* [go] backport [C++] Have all phony targets in build.ninjaFumitoshi Ukai2015-07-161-0/+7
| | | | commit b1570a8c693a550a1fbe57872982146b56066aea
* [go] implement vpath directiveFumitoshi Ukai2015-07-151-1/+3
|
* [go] logging target specific var in V(1)Fumitoshi Ukai2015-07-151-1/+3
|
* use github.com/golang/glogFumitoshi Ukai2015-07-101-13/+15
|
* remove unused types/funcFumitoshi Ukai2015-07-031-23/+0
| | | | | reverseImplicitRules, byPrefix, bySuffix reverse
* fix vpath.mk, add vpath_directive.mkFumitoshi Ukai2015-07-031-2/+5
|
* fix implicit_pattern_rule_prefix.mkFumitoshi Ukai2015-07-021-76/+82
| | | | implement ruleTrie for implicit rules
* order only is not attribute of dep node.Fumitoshi Ukai2015-06-301-14/+10
|
* fix --ninjaFumitoshi Ukai2015-06-271-4/+2
|
* fix regression at 328a8163e053be4a6889b1863257801ce0ed3360Fumitoshi Ukai2015-06-271-2/+4
| | | | | | repo/android$ kati -ninja ... *** No rule to make target "out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/export_includes", needed by "out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/import_includes".
* fix panic based error reportingFumitoshi Ukai2015-06-261-19/+37
|
* unexport LogStatsFumitoshi Ukai2015-06-261-6/+6
|
* unexport Logf, LogAlways, Warn*, Error*Fumitoshi Ukai2015-06-251-9/+9
|
* unexport Makefile, Parser and EvalResultFumitoshi Ukai2015-06-251-2/+2
|
* unexport RuleFumitoshi Ukai2015-06-251-86/+86
|
* unexport DepBuilderFumitoshi Ukai2015-06-251-15/+15
|
* unexport *VarFumitoshi Ukai2015-06-251-1/+1
|
* go gettable for github.com/google/katiFumitoshi Ukai2015-06-251-3/+3
|
* reduce runtime.convT2I -> runtime.newobject -> runtime.mallocgcFumitoshi Ukai2015-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conversion from value to interface is more expensive than conversion from pointer to interface. package main import "testing" type I interface { String() string } type val struct { s string } func (v val) String() string { return v.s } type ptr struct { s string } func (p *ptr) String() string { return p.s } func BenchmarkT2IForValue(b *testing.B) { var intf I for i := 0; i < b.N; i++ { intf = val{"abc"} } _ = intf } func BenchmarkT2IForPtr(b *testing.B) { var intf I for i := 0; i < b.N; i++ { intf = &ptr{"abc"} } _ = intf } % go test -bench . a_test.go testing: warning: no tests to run PASS BenchmarkT2IForValue 20000000 90.9 ns/op BenchmarkT2IForPtr 20000000 76.8 ns/op ok command-line-arguments 3.539s
* Add LICENSE and licence headersShinichiro Hamaji2015-06-101-0/+14
|
* fix go vet: possible formatting directive in Log callFumitoshi Ukai2015-06-081-5/+5
| | | | rename Log to Logf, since it takes format string in the first argument.
* Show periodic stats only with --kati_periodic_statsShinichiro Hamaji2015-05-251-1/+1
|
* Add parents to DepNodeShinichiro Hamaji2015-05-141-0/+4
|
* Intern actual inputsShinichiro Hamaji2015-05-141-2/+2
|
* improve pickRuleFumitoshi Ukai2015-05-081-21/+100
| | | | | | | | | | | | | implicitRules are categolized by implicitRules - for pattern=% no prefix,suffix. iprefixRules - for pattern=<prefix>% may be with suffix. isuffixRules - for pattern=%<suffix> no prefix. implicitRules are always checked with canPickImplicitRule. iprefixRules is sorted by output pattern prefix, and only checked for the prefix matched rules. isuffixRules is sorted by output pattern suffix (reverse string), and only checked for the suffix matched rules.
* Revert "improve pickRule (canPickImplicitRule)"Fumitoshi Ukai2015-05-081-56/+18
| | | | This reverts commit 020ee1552626ac27168c3120ffb7f4403e5a7616.
* improve pickRule (canPickImplicitRule)Fumitoshi Ukai2015-05-071-18/+56
| | | | | in populateRule, find implicit rules for outputs, so just check such implicit rules in pickRule.
* use pattern for outputPatternsFumitoshi Ukai2015-04-281-5/+9
| | | | | | | | | | | | | | | | | | | | | outputPatterns should be <prefix>%<suffix>. It is waste to find % in every time. parse outputPattern as pattern (<prefix>, <suffix>) and use it. before: repo/android.sh kati -c # with cpuprofile 82.04s canPickImplicitRule 27.17s (34.34%) matchPattern 19.11s (23.29%) out of the above strings.IndexByte 16.96s (20.67%) out of the above after: repo/android.sh kati -c # with cpuprofile 64.04s canPickImplicitRule 8.08s (12.62%) pattern.match 3.45s (5.39%)
* Fix broken handling for linenoShinichiro Hamaji2015-04-271-1/+2
|
* Show line number of the rule if command lineno is missingShinichiro Hamaji2015-04-271-1/+4
|
* fix phonyFumitoshi Ukai2015-04-221-10/+16
|
* Do not use filepath.Clean to normalize inputs/outputsShinichiro Hamaji2015-04-211-3/+3
| | | | Only leading './'s should be stripped.
* Split exec.go into exec.go and dep.goShinichiro Hamaji2015-04-211-0/+436
Now the dependency graph is constructed by dep.go