|
2 | 2 | Init basic C libraries |
3 | 3 | """ |
4 | 4 | function InitBase() |
5 | | - """ |
6 | | - Base.__init__() |
7 | | - Sys.__init__() #fix https://github.com/JuliaLang/julia/issues/30479 |
8 | | - """ |
| 5 | + """ |
| 6 | + Base.__init__() |
| 7 | + Sys.__init__() #fix https://github.com/JuliaLang/julia/issues/30479 |
| 8 | + """ |
9 | 9 | end |
10 | 10 |
|
11 | 11 | """ |
12 | 12 | # Initialize REPL module for Docs |
13 | 13 | """ |
14 | 14 | function InitREPL() |
15 | | - """ |
16 | | - using REPL |
17 | | - Base.REPL_MODULE_REF[] = REPL |
18 | | - """ |
| 15 | + """ |
| 16 | + using REPL |
| 17 | + Base.REPL_MODULE_REF[] = REPL |
| 18 | + """ |
19 | 19 | end |
20 | | - |
21 | 20 | function Include(path) |
22 | | - """ |
23 | | - M = Module() |
24 | | - # Include into anonymous module to not polute namespace |
25 | | - @eval(M, (Base.include(\$M, $(repr(path))))) |
26 | | - """ |
| 21 | + """ |
| 22 | + Mod = @eval module \$(gensym("anon_module")) end |
| 23 | + # Include into anonymous module to not polute namespace |
| 24 | + Mod.include($(repr(path))) |
| 25 | + """ |
27 | 26 | end |
28 | 27 |
|
29 | 28 | """ |
@@ -155,22 +154,22 @@ end |
155 | 154 |
|
156 | 155 | Incrementally compile `package` into the current system image. |
157 | 156 | `force = true` will replace the old system image with the new one. |
158 | | - This process requires a script that julia will run in order to determine |
159 | | - which functions to compile. A package may define a script called `snoopfile.jl` |
| 157 | + This process requires a script that julia will run in order to determine |
| 158 | + which functions to compile. A package may define a script called `snoopfile.jl` |
160 | 159 | for this purpose. If this file cannot be found the package's test script |
161 | | - `Package/test/runtests.jl` will be used. `compile_incremental` will search |
| 160 | + `Package/test/runtests.jl` will be used. `compile_incremental` will search |
162 | 161 | for `snoopfile.jl` in the package's root directory and in the folders |
163 | | - `Package/src` and `Package/snoop`. For a more explicit version of compile_incremental, |
| 162 | + `Package/src` and `Package/snoop`. For a more explicit version of compile_incremental, |
164 | 163 | see: `compile_incremental(toml_path::String, snoopfile::String)` |
165 | 164 |
|
166 | 165 | Not all packages can currently be compiled into the system image. By default, |
167 | 166 | `compile_incremental(:Package) will also compile all of Package's dependencies. |
168 | 167 | It can still be desirable to compile packages with dependencies that cannot be |
169 | 168 | compiled. For this reason `compile_incremental` offers |
170 | 169 | the ability for the user to pass a list of blacklisted packages |
171 | | - that will be ignored during the compilation process. These are passed as a |
| 170 | + that will be ignored during the compilation process. These are passed as a |
172 | 171 | vector of package names (defined as either strings or symbols) using the |
173 | | - `blacklist keyword argument` |
| 172 | + `blacklist keyword argument` |
174 | 173 | """ |
175 | 174 | function compile_incremental(pkg::Symbol, packages::Symbol...; |
176 | 175 | blacklist::Vector=[], kw...) |
|
0 commit comments