Skip to content
Open
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
9 changes: 3 additions & 6 deletions src/compiling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,11 @@ function compile_products(recipe::ImageRecipe)
recipe.add_ccallables = true
end
if recipe.cpu_target === nothing
recipe.cpu_target = get(ENV,"JULIA_CPU_TARGET", nothing)
default_cpu_target = PackageCompiler.default_app_cpu_target()
recipe.cpu_target = get(ENV, "JULIA_CPU_TARGET", default_cpu_target)
end
julia_cmd = `$(Base.julia_cmd(;cpu_target=recipe.cpu_target)) --startup-file=no --history-file=no`
if recipe.cpu_target !== nothing
precompile_cpu_target = String(first(split(recipe.cpu_target, [';',','])))
else
precompile_cpu_target = nothing
end
precompile_cpu_target = String(first(split(recipe.cpu_target, [';',','])))
# Ensure the app project is instantiated and precompiled
if isdir(recipe.file)
if recipe.project != ""
Expand Down