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

How to detect static build? #11

Open

Description

@samoconnor

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions