Skip to content

Commit

Permalink
Fix build.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
antimon2 committed Aug 2, 2018
1 parent 9fedfab commit dd74ea2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
QDates
======

[![Build Status](https://travis-ci.org/antimon2/QDates.jl.svg?branch=master)](https://travis-ci.org/antimon2/QDates.jl) [![Build status](https://ci.appveyor.com/api/projects/status/github/antimon2/QDates.jl?branch=master)](https://ci.appveyor.com/project/quinnj/compat-jl/branch/master)
[![Build Status](https://travis-ci.org/antimon2/QDates.jl.svg?branch=master)](https://travis-ci.org/antimon2/QDates.jl) [![Build status](https://ci.appveyor.com/api/projects/status/github/antimon2/QDates.jl?branch=master)](https://ci.appveyor.com/project/antimon2/qdates-jl/branch/master)
[![QDates](http://pkg.julialang.org/badges/QDates_0.5.svg)](http://pkg.julialang.org/detail/QDates) [![QDates](http://pkg.julialang.org/badges/QDates_0.6.svg)](http://pkg.julialang.org/detail/QDates)
[![Coverage Status](https://coveralls.io/repos/antimon2/QDates.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/antimon2/QDates.jl?branch=master) [![codecov.io](http://codecov.io/github/antimon2/QDates.jl/coverage.svg?branch=master)](http://codecov.io/github/antimon2/QDates.jl?branch=master)

Expand Down
7 changes: 4 additions & 3 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# build.jl
using Compat

depsdir = dirname(@__FILE__)
libfilename = "libqref.so"

if Sys.iswindows()
if Compat.Sys.iswindows()
libfilename = "libqref.dll"
else
if Sys.isapple()
if Compat.Sys.isapple()
libfilename = "libqref.dylib"
end
shared_flag = Sys.isapple() ? "-dynamiclib" : "-shared"
shared_flag = Compat.Sys.isapple() ? "-dynamiclib" : "-shared"

cd(joinpath(depsdir, "qref"))
run(`gcc $shared_flag -o ../$libfilename -fPIC qref.c`)
Expand Down

0 comments on commit dd74ea2

Please sign in to comment.