support go 1.5

This commit is contained in:
Josh Baker 2016-03-04 16:28:32 -07:00
parent c83d915111
commit 9be0218980
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,7 @@ Tile38 is an open source (MIT licensed), in-memory geolocation data store, spati
- `tile38-cli ` - Command line interface tool
## Building Tile38
Tile38 can be compiled and used on Linux, OSX, Windows, FreeBSD, and probably others since the codebase is 100% Go. We support both 32 bit and 64 bit systems. [Go 1.6+](https://golang.org/dl/) must be installed on the build machine.
Tile38 can be compiled and used on Linux, OSX, Windows, FreeBSD, and probably others since the codebase is 100% Go. We support both 32 bit and 64 bit systems. [Go](https://golang.org/dl/) must be installed on the build machine.
To build everything simply:
```

View File

@ -6,11 +6,13 @@ BUILD_TIME=$(date +%FT%T%z)
GIT_SHA=$(git rev-parse --short HEAD)
LDFLAGS="-X github.com/tidwall/tile38/core.Version=${VERSION} -X github.com/tidwall/tile38/core.BuildTime=${BUILD_TIME} -X github.com/tidwall/tile38/core.GitSHA=${GIT_SHA}"
export GO15VENDOREXPERIMENT=1
cd $(dirname "${BASH_SOURCE[0]}")
OD="$(pwd)"
# copy all files to an isloated directory.
TMP="$(mktemp -d -t tile38)"
TMP="$(mktemp -d -t tile38.XXXX)"
function rmtemp {
rm -rf "$TMP"
}