-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing error if JULIA_CPU_TARGET=""
#52209
Comments
Stacktrace is
so probably empty Line 2085 in 8e5136f
Line 2133 in 8e5136f
|
There is a missing space here: diff --git a/base/util.jl b/base/util.jl
index a3771f4ae9..c4775f77c0 100644
--- a/base/util.jl
+++ b/base/util.jl
@@ -243,7 +243,7 @@ function julia_cmd(julia=joinpath(Sys.BINDIR, julia_exename()); cpu_target::Unio
if opts.use_pkgimages == 0
push!(addflags, "--pkgimages=no")
end
- return `$julia -C$cpu_target -J$image_file $addflags`
+ return `$julia -C $cpu_target -J $image_file $addflags`
end
function julia_exename() |
I don't think that helps much, I still get the same error with that change. But changing Line 159 in 8e5136f
if cpu_target === nothing || isempty(cpu_target) does the trick for me. Alternatively, normalising empty string to |
Yes, seems like is also needed, since we should probably treat empty variables as equivalent to missing, even though empty arguments are errors
|
This isn't a valid setting, but the error should be more clear (bc this can happen by accident). Currently it gives the error
which looks like it is somehow taking the next implicit argument as the target.
Full demo on 1.9.4:
The text was updated successfully, but these errors were encountered: