BinDeps.jl
BinDeps.jl copied to clipboard
Force provider choice
For CxxWrap, I provide Windows binaries, but to build those I always comment the following line: https://github.com/barche/CxxWrap.jl/blob/master/deps/build.jl#L119
Obviously, I just made the mistake of forgetting to uncomment before committing. Is there a more elegant way to choose between building and downloading, maybe with an option to Pkg.build? I guess I could also use an environment variable?
You can modify or rearrange BinDeps.defaults to change the ordering, but restore it to what it was at the end of your deps.jl script if you do this.
OK, works for me, thanks.
Sorry for reopening this, but I just found out that when the build command fails it doesn't fall back to binary download, the build simply stops indicating that it failed to create the library. Script: https://github.com/barche/CxxWrap.jl/blob/master/deps/build.jl
Is there some option to set that it should try Binaries if SimpleBuild fails? The BinDeps.defaults
contains only [SimpleBuild, Binaries]
here