Skip to content

Windows builds for macro targets in release mode break the compiler #2483

Open
@broken-bytes

Description

@broken-bytes

Description

Issue

When building any macro target on Windows in release mode, the Swift Compiler gets hung.
The last output with -vv set is always -o F:\Projects\MacroTest\.build\x86_64-unknown-windows-msvc\release\SwiftSyntax.build\SyntaxTypeNodes.swift.o.

Test setup

  • Any recent Swift version, tested on 5.9.2-release and 5.11 development.
  • Default macro package(In fact any macro package)
  • Recent swift-syntax dependency, tested with 509.0.0 and 509.1.1

Steps to Reproduce

  • swift package init --type=macro
  • swift build -c release -vv
  • Compiler gets hung

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions