Skip to content

Add new targets for Cygwin (and MSYS2) #826

Closed
@Berrysoft

Description

@Berrysoft

Proposal

Cygwin is a POSIX-compatible layer on Windows. MSYS2 is a fork of Cygwin. I want to add new targets for Cygwin. The main motivation is to compile fish-shell to Windows.

My proposed targets are x86_64-pc-cygwin and x86_64-pc-cygwin-msys2. The PR is here: rust-lang/rust#134999 . They are tier 3 targets, but we faced some problems: should this target in windows family or in unix family? I would suggest unix family, because Cygwin is such an layer to provide POSIX apis and make porting unix programs easy.

Mentors or Reviewers

@jieyouxu suggested me to open this issue.

Process

The main points of the Major Change Process are as follows:

  • File an issue describing the proposal.
  • A compiler team member or contributor who is knowledgeable in the area can second by writing @rustbot second.
    • Finding a "second" suffices for internal changes. If however, you are proposing a new public-facing feature, such as a -C flag, then full team check-off is required.
    • Compiler team members can initiate a check-off via @rfcbot fcp merge on either the MCP or the PR.
  • Once an MCP is seconded, the Final Comment Period begins. If no objections are raised after 10 days, the MCP is considered approved.

You can read more about Major Change Proposals on forge.

Comments

I have succeeded building my own rustc targeting cygwin and compiled fish on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions