Skip to content

rust_build.py 修正 #10

Description

@YukiLauuu

编译环境: 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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions