Commit cfd4e21
committed
chore(libDirs): MSVC /LIBPATH branch + package_dir anchoring + tests/docs (v0.5.908)
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. Without
this, targets.windows.libDirs would silently fail to resolve the
{lib}.lib lookups that immediately follow.
- resolve.rs: anchor relative libDirs entries to package_dir via
package_dir.join(p), matching the existing swift_sources /
metal_sources pattern. Absolute entries still pass through because
PathBuf::join ignores the base on an absolute right-hand side. The
struct field type is now Vec<PathBuf> (not Vec<String>) for the same
reason.
- compile.rs: doc-comment on the new field explaining the anchoring +
linker semantics.
- manifest-v1.md: row added for libDirs in the canonical fields table.
- resolve.rs: two new tests in a manifest_parse_tests module that
round-trip a manifest with absolute + relative libDirs and assert
the package_dir anchoring + empty-by-default behavior.
- Cargo.toml / Cargo.lock / CLAUDE.md / CHANGELOG.md: 0.5.907 → 0.5.908.1 parent 23058ab commit cfd4e21
8 files changed
Lines changed: 159 additions & 74 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