You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Revise `doc/README.md` to mention `JULIA_EXECUTABLE` usage with
doctests, adding a warning regarding built-in stdlibs
- Enhance `contrib/print_sorted_stdlibs.jl` script to add
`--only-sysimg` option to accurately list standard libraries built into
the system image.
These modifications aim to provide clearer documentation and more
effective tooling for contributors and AI agents wanting to run the
doctests without building julia from scratch.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: doc/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,3 +27,11 @@ $ make -C doc doctest=true
27
27
```
28
28
29
29
from the root directory.
30
+
31
+
## Customizing Doctest Execution
32
+
33
+
By default, doctests are run using the in-tree Julia executable.
34
+
This behavior can be changed by setting the `JULIA_EXECUTABLE` Makefile variable.
35
+
36
+
> [!WARNING]
37
+
> Using a custom `JULIA_EXECUTABLE` will not pick up changes to docstrings for Base or any standard library built into the system image. To see the list of standard libraries that are part of the system image, you can run the `contrib/print_sorted_stdlibs.jl` script (e.g., `julia contrib/print_sorted_stdlibs.jl --only-sysimg`).
0 commit comments