Skip to content

Commit e5a3cee

Browse files
authored
fail early if both incremental and filter_stdlibs (#800)
1 parent e5a8410 commit e5a3cee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PackageCompiler.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,9 @@ function create_app(package_dir::String,
760760
sysimage_build_args::Cmd=``,
761761
include_transitive_dependencies::Bool=true)
762762
warn_official()
763+
if filter_stdlibs && incremental
764+
error("must use `incremental=false` to use `filter_stdlibs=true`")
765+
end
763766
# We call this at the very beginning to make sure that the user has a compiler available. Therefore, if no compiler
764767
# is found, we throw an error immediately, instead of making the user wait a while before the error is thrown.
765768
get_compiler_cmd()

0 commit comments

Comments
 (0)