swiftlang / swiftlang/swift-syntax

Windows builds for macro targets in release mode break the compiler

Open
#2,483 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
3.7k
Forks
553
Avg merge
5d 13h
Merged PRs (30d)
16

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.