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

How to detect static build? #11

Open
samoconnor opened this issue Sep 29, 2017 · 0 comments
Open

How to detect static build? #11

samoconnor opened this issue Sep 29, 2017 · 0 comments

Comments

@samoconnor
Copy link

What is the best (standard?) way to detect a static-julia build ?
Perhaps there should be Base.is_static_julia() -> Bool ?

I currently have the following at the bottom of my main module to check for the outputo option:

if Base.JLOptions().outputo != Ptr{UInt8}(0)

    Base.@ccallable function julia_main(args::Vector{String})::Cint
        init(args)
        return 0
    end

else
    init(ARGS)
end

end # mymodule
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant