diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2016-11-29 21:21:32 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 21:21:32 +0900 |
commit | a4682fadaac3778d8bb094951ec593f58f04a157 (patch) | |
tree | fced4e54fc0d05a16145712356a4a2b8aee37596 | |
parent | 0a72af2066c99655d57bac95acea8732fcfcbd0f (diff) | |
parent | d02813b7baf3ab6e7c7b156e89b315445a454fce (diff) | |
download | kati-a4682fadaac3778d8bb094951ec593f58f04a157.tar.gz |
Merge pull request #106 from zchee/go-gettable
[go] Fix can't the build kati binary
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | Makefile.kati | 2 | ||||
-rw-r--r-- | affinity.cc | 2 | ||||
-rw-r--r-- | fileutil_bench.cc | 2 | ||||
-rw-r--r-- | pathutil.go | 6 | ||||
-rw-r--r-- | regen.cc | 2 | ||||
-rw-r--r-- | strutil_bench.cc | 2 | ||||
-rw-r--r-- | thread_pool.cc | 2 |
9 files changed, 16 insertions, 4 deletions
@@ -9,5 +9,6 @@ # Please keep the list sorted. Google Inc. +Koichi Shiraishi <zchee.io@gmail.com> Kouhei Sutou <kou@cozmixng.org> Po Hu <hupo1985@gmail.com> diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c153787..3c2e7d4 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -25,6 +25,7 @@ Colin Cross <ccross@google.com> Dan Willemsen <dwillemsen@google.com> Fumitoshi Ukai <ukai@google.com> +Koichi Shiraishi <zchee.io@gmail.com> Kouhei Sutou <kou@cozmixng.org> Po Hu <hupo1985@gmail.com> Ryo Hashimoto <hashimoto@google.com> diff --git a/Makefile.kati b/Makefile.kati index fa29d62..df91cbb 100644 --- a/Makefile.kati +++ b/Makefile.kati @@ -22,7 +22,7 @@ endif kati: go_src_stamp -rm -f out/bin/kati - GOPATH=${KATI_GOPATH} go install -ldflags "-X github.com/google/kati.gitVersion $(shell git rev-parse HEAD)" github.com/google/kati/cmd/kati + GOPATH=${KATI_GOPATH} go install -ldflags "-X github.com/google/kati.gitVersion=$(shell git rev-parse HEAD)" github.com/google/kati/cmd/kati cp out/bin/kati $@ go_src_stamp: $(GO_SRCS) $(wildcard cmd/*/*.go) diff --git a/affinity.cc b/affinity.cc index 0743f94..2101fdb 100644 --- a/affinity.cc +++ b/affinity.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build ignore + #include "affinity.h" #include "flags.h" diff --git a/fileutil_bench.cc b/fileutil_bench.cc index 4b1f033..77a0d35 100644 --- a/fileutil_bench.cc +++ b/fileutil_bench.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build ignore + #include "fileutil.h" #include <benchmark/benchmark.h> #include <cstdio> diff --git a/pathutil.go b/pathutil.go index 0d3aa05..ad11c22 100644 --- a/pathutil.go +++ b/pathutil.go @@ -191,7 +191,7 @@ func (c *fsCacheT) readdir(dir string, id fileid) (fileid, []dirent) { return invalidFileid, nil } if stat, ok := fi.Sys().(*syscall.Stat_t); ok { - id = fileid{dev: stat.Dev, ino: stat.Ino} + id = fileid{dev: uint64(stat.Dev), ino: stat.Ino} } names, _ := d.Readdirnames(-1) // need sort? @@ -209,7 +209,7 @@ func (c *fsCacheT) readdir(dir string, id fileid) (fileid, []dirent) { mode := lmode var id fileid if stat, ok := fi.Sys().(*syscall.Stat_t); ok { - id = fileid{dev: stat.Dev, ino: stat.Ino} + id = fileid{dev: uint64(stat.Dev), ino: stat.Ino} } if lmode&os.ModeSymlink == os.ModeSymlink { fi, err = os.Stat(path) @@ -218,7 +218,7 @@ func (c *fsCacheT) readdir(dir string, id fileid) (fileid, []dirent) { } else { mode = fi.Mode() if stat, ok := fi.Sys().(*syscall.Stat_t); ok { - id = fileid{dev: stat.Dev, ino: stat.Ino} + id = fileid{dev: uint64(stat.Dev), ino: stat.Ino} } } } @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build ignore + #include "regen.h" #include <sys/stat.h> diff --git a/strutil_bench.cc b/strutil_bench.cc index c52e43c..d3b2e6c 100644 --- a/strutil_bench.cc +++ b/strutil_bench.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build ignore + #include <string> #include <vector> diff --git a/thread_pool.cc b/thread_pool.cc index 0a12bfa..b2429cb 100644 --- a/thread_pool.cc +++ b/thread_pool.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build ignore + #include "thread_pool.h" #include <condition_variable> |