Skip to content

Commit

Permalink
don't use startup.jl when precompiling, building and testing (#470)
Browse files Browse the repository at this point in the history
unless the user has explicitly asked for it with
  --startup-file=yes

(cherry picked from commit 40d7f27f2ff08ec466df536f267129a9f5e950b4)
(cherry picked from commit eb96811)
  • Loading branch information
fredrikekre authored and KristofferC committed Sep 26, 2018
1 parent 98e50a8 commit 4ffd2a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/Pkg/src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ function build_versions(ctx::Context, uuids::Vector{UUID}; might_need_to_resolve
"""
cmd = ```
$(Base.julia_cmd()) -O0 --color=no --history-file=no
--startup-file=$(Base.JLOptions().startupfile != 2 ? "yes" : "no")
--startup-file=$(Base.JLOptions().startupfile == 1 ? "yes" : "no")
--compiled-modules=$(Bool(Base.JLOptions().use_compiled_modules) ? "yes" : "no")
--eval $code
```
Expand Down
1 change: 0 additions & 1 deletion stdlib/Pkg/src/REPLMode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,6 @@ Create a project called `pkgname` in the current folder.
precompile
Precompile all the dependencies of the project by running `import` on all of them in a new process.
The `startup.jl` file is disabled during precompilation unless julia is started with `--startup-file=yes`.
""",
),( CMD_STATUS,
["status", "st"],
Expand Down

0 comments on commit 4ffd2a8

Please sign in to comment.