Closed Dajamante closed 1 year ago
Compiling the Rust file with and Ada library that does not compile will now fail with an error message from gprbuild.
gprbuild
For example I added the world "astrocat" without semicolon inside ada_hello.adb:
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)
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
/workspaces/ada_rust_programs/gpr-rust/examples/ada_hello/target/debug/build/ada_hello-d322c83e3a3d974b/build-script-build
RUST_BACKTRACE=1
Thank you very much!
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 withRUST_BACKTRACE=1
environment variable to display a backtrace