Skip to content

Conversation

@daveinglis
Copy link
Contributor

  • need to add .exe prefix to .builtTool binary so swiftbuild/llbuild file inputs are correct.

closes: #9189
rdar://161337478

// For an executable target we create a `builtTool`.
else if executableOrBinaryModule.type == .executable {
return try [.builtTool(name: builtToolName, path: RelativePath(validating: executableOrBinaryModule.name))]
let exeName = hostTriple.isWindows() ? executableOrBinaryModule.name + ".exe" : executableOrBinaryModule.name
Copy link
Contributor

@bkhouri bkhouri Jan 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: can we use executableName(name:) here so the executable name is updated in single location instead of of having to find all places where we need to add the .exe extension on Windows, and possibly any future platform that may have specific executable suffixes.

@daveinglis daveinglis force-pushed the command_plugin_windows_fix branch from cf86294 to cd46e43 Compare January 5, 2026 15:34
@daveinglis
Copy link
Contributor Author

@swift-ci test windows

@daveinglis daveinglis force-pushed the command_plugin_windows_fix branch 2 times, most recently from 92d1b16 to b89b4ea Compare January 7, 2026 21:18
- need to add .exe prefix to .builtTool binary so swiftbuild/llbuild
  file inputs are correct.

closes: swiftlang#9189
rdar://161337478
@daveinglis daveinglis force-pushed the command_plugin_windows_fix branch from b89b4ea to d64bdd1 Compare January 8, 2026 15:18
@daveinglis daveinglis enabled auto-merge (squash) January 8, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Parity] plugin "swift-openapi-generator" crashes

3 participants