1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

Use build tags to control when and where cmount is built

This commit is contained in:
Nick Craig-Wood
2017-05-19 15:46:13 +01:00
parent 7daf97f90a
commit 8f54dc06a2
11 changed files with 29 additions and 15 deletions

View File

@@ -27,6 +27,7 @@ var (
exclude = flag.String("exclude", "^$", "os/arch regexp to exclude")
cgo = flag.Bool("cgo", false, "Use cgo for the build")
noClean = flag.Bool("no-clean", false, "Don't clean the build directory before running.")
tags = flag.String("tags", "", "Space separated list of build tags")
)
// GOOS/GOARCH pairs we build for
@@ -100,6 +101,7 @@ func compileArch(version, goos, goarch, dir string) {
"--ldflags", "-s -X github.com/ncw/rclone/fs.Version=" + version,
"-i",
"-o", output,
"-tags", *tags,
"..",
}
env := []string{