jklmnn / gpr-rust

Rust binding for gpr
Apache License 2.0
14 stars 2 forks source link

Gprbuild output #1

Closed Dajamante closed 1 year ago

Dajamante commented 1 year ago

Compiling the Rust file with and Ada library that does not compile will now fail with an error message from gprbuild.

For example I added the world "astrocat" without semicolon inside ada_hello.adb:

LD_LIBRARY_PATH=ada_hello/lib cargo run Compiling gpr v0.1.0 (/workspaces/ada_rust_programs/gpr-rust) Compiling ada_hello v0.1.0 (/workspaces/ada_rust_programs/gpr-rust/examples/ada_hello) error: failed to run custom build command for ada_hello v0.1.0 (/workspaces/ada_rust_programs/gpr-rust/examples/ada_hello)

Caused by: process didn't exit successfully: /workspaces/ada_rust_programs/gpr-rust/examples/ada_hello/target/debug/build/ada_hello-d322c83e3a3d974b/build-script-build (exit status: 101) --- stderr ada_hello.adb:9:04: error: "astrocat" is undefined ada_hello.adb:9:12: error: missing ";" gprbuild: *** compilation phase failed thread 'main' panicked at 'explicit panic', build.rs:16:9 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

jklmnn commented 1 year ago

Thank you very much!