Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ img = ImageRecipe(
link = LinkRecipe(
image_recipe = img,
outname = "build/app_test_exe",
rpath = nothing, # set automatically when bundling
rpath = "@bundle", # set only when bundling
)

bun = BundleRecipe(
Expand All @@ -100,7 +100,7 @@ bundle_products(bun)

### Bundling and rpath

When `--bundle` (or `BundleRecipe.output_dir`) is set, JuliaC:
When `--bundle` (or `BundleRecipe.output_dir` and `LinkRecipe.rpath == "@bundle"`) is set, JuliaC:
- Places the executable in `<output_dir>/bin` and libraries in `<output_dir>/lib` and `<output_dir>/lib/julia` (Windows: everything under `<output_dir>/bin`).
- Copies required artifacts alongside the bundle.
- Links your output with a relative rpath so the executable finds sibling libs (Unix uses `@loader_path/../lib` or `$ORIGIN/../lib`).
Expand Down