diff --git a/interactive_engine/executor/assembly/groot/Cargo.toml b/interactive_engine/executor/assembly/groot/Cargo.toml index dadfc50b8024..ae933fc115ee 100644 --- a/interactive_engine/executor/assembly/groot/Cargo.toml +++ b/interactive_engine/executor/assembly/groot/Cargo.toml @@ -27,5 +27,6 @@ column_filter_push_down = [] # TODO(siyuan): re-enable debug assertions by addressing the reports for misaligned pointer dereferences https://github.com/rust-lang/rust/pull/98112/ debug-assertions = false -[profile.release] +[profile.release-with-debug-info] +inherits = "release" debug = true diff --git a/interactive_engine/executor/build.sh b/interactive_engine/executor/build.sh index 8f6ed0f5a36b..4938ec30d1b3 100755 --- a/interactive_engine/executor/build.sh +++ b/interactive_engine/executor/build.sh @@ -38,8 +38,7 @@ if [ "$MODE" = "debug" ]; then elif [ "$MODE" = "release" ]; then cargo build --release $append else - echo "Invalid mode, choose from debug or release." - exit 1 + cargo build --profile $MODE $append fi if [ "$TARGET" = "groot" ]; then