@@ -18,25 +18,5 @@ function include_build_script(version_str, try_prev=false)
1818 include (build_script)
1919end
2020
21- @static if Sys. isapple ()
22- println (" BinaryBuilder has a problem of its macOS support, so we build the dylib by ourselves." )
23- using Libdl
24- julia_root = Libdl. dlpath (" libjulia" ) |> dirname |> dirname |> abspath
25- LIBS = " $(julia_root) /lib"
26- LIBSJL = " $(julia_root) /lib/julia"
27- INCLUDES = " $(julia_root) /include/julia"
28- THIS_DIR = dirname (@__FILE__ )
29- OUTPUT_DIR = joinpath (THIS_DIR, " usr/lib" )
30- run (` mkdir -p $OUTPUT_DIR ` )
31- OUTPUT = joinpath (OUTPUT_DIR, " libtask.dylib" )
32- run (` gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -ljulia $THIS_DIR /task.c -o $OUTPUT ` )
33-
34- depsjl = joinpath (THIS_DIR, " deps.jl" )
35- open (depsjl, " w" ) do io
36- write (io, " const libtask = \" $OUTPUT \" ;\n " )
37- write (io, " function check_deps() end\n " )
38- end ;
39- else
40- version_str = read (joinpath (@__DIR__ , " ../VERSION" ), String) |> strip |> (x) -> lstrip (x, [' v' ])
41- include_build_script (version_str, true )
42- end
21+ version_str = read (joinpath (@__DIR__ , " ../VERSION" ), String) |> strip |> (x) -> lstrip (x, [' v' ])
22+ include_build_script (version_str, true )
0 commit comments