Skip to content

Commit

Permalink
Prefer building on Windows if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Apr 19, 2016
1 parent 7702ac5 commit e907e38
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ end
end


@windows_only push!(BinDeps.defaults, SimpleBuild)
@windows_only begin
# prefer building if possible
saved_defaults = BinDeps.defaults
empty!(BinDeps.defaults)
append!(BinDeps.defaults, [SimpleBuild, Binaries])
end

@BinDeps.setup

Expand Down Expand Up @@ -116,8 +121,11 @@ provides(BuildProcess,
end),examples)

deps = [cxx_wrap, examples]
provides(Binaries, Dict(URI("https://github.com/barche/CxxWrap.jl/releases/download/v0.1.3/CxxWrap-julia-$(VERSION.major).$(VERSION.minor)-win$(WORD_SIZE).zip") => deps), os = :Windows)
provides(Binaries, Dict(URI("https://github.com/barche/CxxWrap.jl/releases/download/v0.1.4/CxxWrap-julia-$(VERSION.major).$(VERSION.minor)-win$(WORD_SIZE).zip") => deps), os = :Windows)

@BinDeps.install

@windows_only pop!(BinDeps.defaults)
@windows_only begin
empty!(BinDeps.defaults)
append!(BinDeps.defaults, saved_defaults)
end

0 comments on commit e907e38

Please sign in to comment.