Skip to content

#71819 Broke windows bootstrap. #72057

Closed
Closed
@crlf0710

Description

@crlf0710

In #71819, this code is added in bootstrap.py

    required = not sys.platform == 'win32'
    ostype = require(["uname", "-s"], exit=required).decode(default_encoding)
    cputype = require(['uname', '-m'], exit=required).decode(default_encoding)

And on windows, this error is emitted:

  File "L:\ThirdParty\rust\rust-workdir\src\bootstrap\bootstrap.py", line 184, in default_build_triple
    ostype = require(["uname", "-s"], exit=required).decode(default_encoding)
AttributeError: 'NoneType' object has no attribute 'decode'

@jyn514 cc @Mark-Simulacrum

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions