Commit d2e27e7
feat: add libDirs to native library manifest (v0.5.909) (#762)
* feat: add libDirs support
Add support for specifying library search paths in native library
target configurations via the new `libDirs` field in package.json.
Changes:
- Add `lib_dirs` field to TargetNativeConfig
- Parse `libDirs` from package.json
- Add `-L` flags for libDirs before linking
* chore(libDirs): MSVC /LIBPATH branch + package_dir anchoring + tests/docs (v0.5.909)
Maintainer fold-in on top of @Lebei2046's libDirs feature:
- link.rs: emit /LIBPATH:<dir> on is_windows (MSVC link.exe) instead of
-L<dir>, mirroring the existing libs loop's MSVC/Unix split.
- resolve.rs: anchor relative libDirs entries to package_dir via
package_dir.join(p), matching swift_sources / metal_sources. Field
type is now Vec<PathBuf>.
- compile.rs: doc-comment on the new field.
- manifest-v1.md: row added for libDirs.
- resolve.rs: two new tests in manifest_parse_tests covering
package_dir anchoring + empty-by-default behavior.
- Cargo.toml / Cargo.lock / CLAUDE.md / CHANGELOG.md: 0.5.908 → 0.5.909
(renumbered to follow #760 which took 0.5.908 mid-review).
---------
Co-authored-by: Ralph Küpper <ralph.kuepper@skelpo.com>1 parent 2f3a82c commit d2e27e7
8 files changed
Lines changed: 170 additions & 70 deletions
File tree
- crates/perry/src/commands
- compile
- docs/src/native-libraries
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments