Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making GC related fields tunable #2261

Merged
merged 4 commits into from
Feb 1, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Release v0.5.3-rc1
  • Loading branch information
root committed Jan 24, 2017
commit c0e74ea0f9703a27b9cd2eba9302d7f9ea03864c
20 changes: 2 additions & 18 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ GIT_DIRTY="$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)"
# XC_ARCH=${XC_ARCH:-"386 amd64"}
# XC_OS=${XC_OS:-linux}

XC_ARCH=${XC_ARCH:-"386 amd64"}
XC_OS=${XC_OS:-"linux"}
XC_ARCH=${XC_ARCH:-"amd64 386"}
XC_OS=${XC_OS:-"darwin windows"}
XC_EXCLUDE=${XC_EXCLUDE:-"!darwin/arm !darwin/386"}

# Delete the old dir
Expand All @@ -47,22 +47,6 @@ gox \
.

echo ""
if pkg-config --exists lxc; then
echo "==> Building linux_amd64-lxc..."
go build \
-tags lxc \
-ldflags "-X main.GitCommit='${GIT_COMMIT}${GIT_DIRTY}+lxc'" \
-o "pkg/linux_amd64-lxc/nomad"
else
if [[ "${NOMAD_DEV}" ]]; then
# No lxc in dev mode is no problem
echo "LXC not installed; skipping"
else
# Require LXC for release mode
echo "LXC not installed; install lxc-dev to build release binaries"
exit 1
fi
fi

# Move all the compiled things to the $GOPATH/bin
GOPATH=${GOPATH:-$(go env GOPATH)}
Expand Down