Astra-sim-astra_analytical debug模式编译不过的解决办法

问题是把警告视为错误

在tutorials/hoti2024/astra-sim/build/astra_analytical/build.sh脚本中修为:

function compile_astrasim_analytical_as_debug() {

cd "${BUILD_DIR:?}" || exit
cmake .. -DBUILDTARGET="$1" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS_DEBUG="-Wno-error"
cmake --build . --config=Debug -j "${NUM_THREADS:?}"
}

posted @ 2025-03-20 11:14  猝不及防  阅读(19)  评论(1)    收藏  举报