Commit 4a83470
authored
LazyLibrary: Make
Like many registration / hook-like functions in Julia, this function is
somewhat dangerous to use at (pre)compile-time. Depending on whether the
`LazyLibrary` you are adding dependencies to was constructed in a
separate pre-compilation process or not, your dependencies may or may
not persist.
This change errs on the side of consistency, and makes it so that
`add_dependency!` is always an ephemeral operation that does not persist
beyond the lifetime of the process, which makes it safe to temporarily
register dependencies, e.g., during a sysimage build.
(originally for JuliaLang/LinearAlgebra.jl#1407)add_dependency! always ephemeral to a given process (#59233)1 parent d9ae7fd commit 4a83470
2 files changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
361 | 366 | | |
362 | 367 | | |
363 | 368 | | |
| |||
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
380 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
381 | 390 | | |
382 | 391 | | |
383 | 392 | | |
| |||
390 | 399 | | |
391 | 400 | | |
392 | 401 | | |
393 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
394 | 405 | | |
395 | 406 | | |
396 | 407 | | |
| |||
402 | 413 | | |
403 | 414 | | |
404 | 415 | | |
405 | | - | |
| 416 | + | |
406 | 417 | | |
407 | 418 | | |
408 | 419 | | |
| |||
418 | 429 | | |
419 | 430 | | |
420 | 431 | | |
421 | | - | |
| 432 | + | |
422 | 433 | | |
423 | 434 | | |
424 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
0 commit comments