rtt_rust icon indicating copy to clipboard operation
rtt_rust copied to clipboard

rust_build.py 修正

Open YukiLauuu opened this issue 1 year ago • 0 comments

编译环境: x86_64 windows10 env (rt-thread提供的env-windows集成环境,使用python2.7) 出现错误

Rust build: rust toolchains error Rust build: run cmd 'rustc --print sysroot' failed! Exception: RUST BUILD FATAL ERROR!!!:

定位错误,出现在rust_build.py 193行的try代码块中,使用了切片方式来去除rustc_path末尾的换行符 修正:将切片方式修改为使用strip函数

# rustc_path = str(rustc_path[0:-1], "UTF-8")
rustc_path = rustc_path.strip()

YukiLauuu avatar Mar 13 '24 08:03 YukiLauuu