Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more reliable target directory estimation #638

Conversation

peterwilli
Copy link
Contributor

Currently, llama-cpp-rs fails with "not found" when compiling a project using a different profile.

For example, having this in our cargo toml:

[profile.dist]
lto = true
inherits = "release"
codegen-units = 1
panic = "abort"
strip = "debuginfo"

[profile.release]
opt-level = 3

Then compile like this: cargo build --profile=dist will fail because PROFILE is always "release"

The new way just goes back 3 steps which will always be the target (source: https://stackoverflow.com/a/73603419).

@MarcusDunn MarcusDunn merged commit dec1651 into utilityai:main Feb 7, 2025
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants