From 5e39d992cb8aa6e67db68dcde64642e13c2573ec Mon Sep 17 00:00:00 2001 From: Aaruni Kaushik Date: Wed, 22 May 2024 22:55:32 +0200 Subject: [PATCH] Fix Oscar.build() (#3728) --- system/Build.jl | 5 +++-- system/precompile.jl | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/system/Build.jl b/system/Build.jl index 8c8b81336e35..14b36016ab03 100644 --- a/system/Build.jl +++ b/system/Build.jl @@ -27,11 +27,12 @@ Oscar.system("precompile.jl") sysimage=joinpath(tmp, "Oscar.$(Libdl.dlext)") if !("JULIA_CPU_TARGET" in keys(ENV)) || (ENV["JULIA_CPU_TARGET"] == "") - PackageCompiler.create_sysimage([:Oscar], sysimage_path=sysimage, precompile_execution_file=CO) + println("Building system image for generic target. Use JULIA_CPU_TARGET to change.") + target = PackageCompiler.default_app_cpu_target() else target = ENV["JULIA_CPU_TARGET"] - PackageCompiler.create_sysimage([:Oscar], sysimage_path=sysimage, precompile_execution_file=CO; cpu_target=target) end +PackageCompiler.create_sysimage([:Oscar], sysimage_path=sysimage, precompile_execution_file=CO; cpu_target=target) println("(re)start julia as") println("\tjulia -J $(sysimage)") diff --git a/system/precompile.jl b/system/precompile.jl index f0630ea0ad9a..957072614e73 100644 --- a/system/precompile.jl +++ b/system/precompile.jl @@ -1,9 +1,8 @@ import Pkg Pkg.add("Documenter") Pkg.add("PrettyTables") -Pkg.add("Aqua") - +Pkg.add("JSONSchema") Pkg.precompile() - +ENV["OSCAR_TEST_SUBSET"] = "short" include(joinpath(pkgdir(Oscar), "test", "runtests.jl")) Hecke.system("precompile.jl")