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

Allow custom XGBoost versions in XGBOOST_BUILD_VERSION #2

Open
wants to merge 1 commit into
base: package-refactor
Choose a base branch
from
Open
Changes from all commits
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
9 changes: 5 additions & 4 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ using BinDeps

xgboost = library_dependency("xgboost", aliases = ["libxgboost.so"])

if haskey(ENV, "XGBOOST_BUILD_VERSION") && ENV["XGBOOST_BUILD_VERSION"] == "master"
libcheckout = `git checkout master`
onload = "global const build_version = \"master\""
info("Using the latest master version of the XGBoost library")
if haskey(ENV, "XGBOOST_BUILD_VERSION")
build_version = ENV["XGBOOST_BUILD_VERSION"]
libcheckout = `git checkout $(build_version)`
onload = "global const build_version = \"$(build_version)\""
info("Using the $(build_version) version of the XGBoost library")
else
libcheckout = `git checkout v0.60`
onload = "global const build_version = \"0.60\""
Expand Down