Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/PackageCompiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ function create_sysimage(packages::Union{Nothing, Symbol, Vector{String}, Vector
compat_level::String="major",
extra_precompiles::String = "",
)
# We call this at the very beginning to make sure that the user has a compiler available. Therefore, if no compiler
# is found, we throw an error immediately, instead of making the user wait a while before the error is thrown.
get_compiler_cmd()

if filter_stdlibs && incremental
error("must use `incremental=false` to use `filter_stdlibs=true`")
Expand Down Expand Up @@ -748,6 +751,9 @@ function create_app(package_dir::String,
sysimage_build_args::Cmd=``,
include_transitive_dependencies::Bool=true)
warn_official()
# We call this at the very beginning to make sure that the user has a compiler available. Therefore, if no compiler
# is found, we throw an error immediately, instead of making the user wait a while before the error is thrown.
get_compiler_cmd()

ctx = create_pkg_context(package_dir)
ctx.env.pkg === nothing && error("expected package to have a `name`-entry")
Expand Down