Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #80 from SimonDanisch/master
Browse files Browse the repository at this point in the history
make build work on windows + 0.7
  • Loading branch information
aviks authored Mar 13, 2018
2 parents fbfcf96 + ffcfa4c commit 3737d8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.5
HttpCommon
BinDeps
Compat 0.7.20
Compat 0.48.0
15 changes: 7 additions & 8 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using BinDeps
using Compat
using Compat.Libdl

@BinDeps.setup

Expand All @@ -15,16 +16,14 @@ if is_windows()
end

# This API used for validation was introduced in 2.6.0, and there have no API changes between 2.6 and 2.7
function validate_httpparser(name,handle)
try
p = Libdl.dlsym(handle, :http_parser_url_init)
return p != C_NULL
catch
if is_windows()
warn("Looks like your binary is old. Please run `rm($(sprint(show, joinpath(dirname(@__FILE__), "usr"))); recursive = true)` to delete the old binary and then run `Pkg.build($(sprint(show, "HttpParser")))` again.")
end
function validate_httpparser(name, handle)
handle == C_NULL && return false
p = Libdl.dlsym_e(handle, :http_parser_url_init)
if p == C_NULL
is_windows() && warn("Looks like your binary is old. Please run `rm($(sprint(show, joinpath(dirname(@__FILE__), "usr"))); recursive = true)` to delete the old binary and then run `Pkg.build($(sprint(show, "HttpParser")))` again.")
return false
end
return true
end

libhttp_parser = library_dependency("libhttp_parser", aliases=aliases,
Expand Down

0 comments on commit 3737d8b

Please sign in to comment.