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

Fail DRT build quickly if lean build dir isn't present #477

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

john-h-kastner-aws
Copy link
Contributor

Trying to improve on another papercut in the DRT build process. Add this to remind myself that I need to build the lean library.

Copy link
Contributor

@cdisselkoen cdisselkoen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this in opposition to #461?

Comment on lines 25 to 28
if !Path::new("../cedar-lean/.lake/build/lib").exists() {
panic!("Lean build directory does not exist! Try running `( cd ../cedar-lean && ../cedar-drt/build_lean_lib.sh )`")
}
println!("cargo:rustc-link-search=native=../cedar-lean/.lake/build/lib");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same path is hardcoded twice, should we make it a variable

@john-h-kastner-aws
Copy link
Contributor Author

john-h-kastner-aws commented Nov 19, 2024

Is this in opposition to #461?

Not really. That will already require adding a condition build file to not error when env::var("LEAN_LIB_DIR") is missing, so this extra check will just go under that

Signed-off-by: John Kastner <[email protected]>
Signed-off-by: John Kastner <[email protected]>
@john-h-kastner-aws john-h-kastner-aws merged commit 2af65bc into main Nov 19, 2024
6 checks passed
@john-h-kastner-aws john-h-kastner-aws deleted the check-for-lean-build-dir branch November 19, 2024 21:17
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.

3 participants