Revision 042cde527b2c46177872340795e21d01ea6a1f91 authored by Lilith Orion Hafner on 26 July 2024, 13:33:32 UTC, committed by Lilith Orion Hafner on 26 July 2024, 13:33:32 UTC
1 parent 40498bc
Raw File
compileall.jl
# This test builds a full system image, so it can take a little while.
# We make it a separate test target here, so that it can run in parallel
# with the rest of the tests.

mktempdir() do dir
    @test success(pipeline(`$(Base.julia_cmd()) --compile=all --strip-ir --output-o $(dir)/sys.o.a -e 'exit()'`, stderr=stderr)) skip=(Sys.WORD_SIZE == 32)
    if isfile(joinpath(dir, "sys.o.a"))
        Base.Linking.link_image(joinpath(dir, "sys.o.a"), joinpath(dir, "sys.so"))
        @test success(`$(Base.julia_cmd()) -J $(dir)/sys.so -e 'Base.scrub_repl_backtrace(nothing); exit()'`)
    end
end
back to top