PackageCompiler: Do optimisation flags influence the produced sysimages?

Is there a difference between
julia -O3 -e "import PackageCompiler; PackageCompiler.create_sysimage(...)"
vs
julia -e "import PackageCompiler; PackageCompiler.create_sysimage(...)"?
Are the produced sysimages the same or is the first variant producing more optimised sysimages?

2 Likes