From f9970af4e2c4904f1a1f323664f62d6611242243 Mon Sep 17 00:00:00 2001 From: "xiaolei.zl" Date: Fri, 18 Oct 2024 14:32:46 +0800 Subject: [PATCH] reset build_ir_core.sh Committed-by: xiaolei.zl from Dev container --- interactive_engine/compiler/build_ir_core.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/interactive_engine/compiler/build_ir_core.sh b/interactive_engine/compiler/build_ir_core.sh index 3a27f9725c6d..a2d49a4d9446 100755 --- a/interactive_engine/compiler/build_ir_core.sh +++ b/interactive_engine/compiler/build_ir_core.sh @@ -1,12 +1,12 @@ #!/bin/bash -#set -e -#set -x -# -#if $(! command -v cargo &> /dev/null) -#then -# echo "cargo not exit, skip compile" -#else -# cd ../executor/ir/core -# cargo build --release -#fi +set -e +set -x + +if $(! command -v cargo &> /dev/null) +then + echo "cargo not exit, skip compile" +else + cd ../executor/ir/core + cargo build --release +fi