diff --git a/src/snooping.jl b/src/snooping.jl index 0c2a5d32..1e9dc0da 100644 --- a/src/snooping.jl +++ b/src/snooping.jl @@ -7,7 +7,7 @@ function snoop(package, tomlpath, snoopfile, outputfile, reuse = false) using Pkg, PackageCompiler """ - if tomlpath != nothing + if tomlpath !== nothing command *= """ Pkg.activate($(repr(tomlpath))) Pkg.instantiate() @@ -31,11 +31,11 @@ function snoop(package, tomlpath, snoopfile, outputfile, reuse = false) run_julia(command, compile = "all", O = 0, g = 1, trace_compile = tmp_file) end used_packages = Set{String}() # e.g. from test/REQUIRE - if package != nothing + if package !== nothing push!(used_packages, string(package)) end usings = "" - if tomlpath != nothing + if tomlpath !== nothing # add toml packages, in case extract_used_packages misses a package deps = get(TOML.parsefile(tomlpath), "deps", Dict{String, Any}()) union!(used_packages, string.(keys(deps))) diff --git a/src/system_image.jl b/src/system_image.jl index bda101aa..530507cf 100644 --- a/src/system_image.jl +++ b/src/system_image.jl @@ -17,7 +17,7 @@ function compile_system_image(sysimg_path, cpu_target = nothing; debug = false) # At some point, I will need to understand build_object a bit better before doing that move, though! julia_cmd = Base.julia_cmd() julia = julia_cmd.exec[1] - cpu_target = if cpu_target == nothing + cpu_target = if cpu_target === nothing replace(julia_cmd.exec[2], "-C" => "") else cpu_target