Skip to content

Forward -ipi-clang-module to the frontend#2145

Merged
sepy97 merged 1 commit into
swiftlang:mainfrom
sepy97:ipi-clang-module-flag
May 31, 2026
Merged

Forward -ipi-clang-module to the frontend#2145
sepy97 merged 1 commit into
swiftlang:mainfrom
sepy97:ipi-clang-module-flag

Conversation

@sepy97

@sepy97 sepy97 commented May 27, 2026

Copy link
Copy Markdown
Contributor

Add the Option.ipiClangModule definition and forward the ipi clang module names to the frontend.

rdar://178067059

@sepy97

sepy97 commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@sepy97 sepy97 marked this pull request as ready for review May 27, 2026 20:48
public static let internalImportPch: Option = Option("-internal-import-pch", .separate, attributes: [.helpHidden, .frontend, .argumentIsPath], helpText: "Import bridging header PCH file as internal")
public static let internalizeAtLink: Option = Option("-internalize-at-link", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Allow internalizing public symbols and vtables at link time (assume all client code of public types is part of the same link unit, or that external symbols are explicitly requested via -exported_symbols_list)")
public static let interpret: Option = Option("-interpret", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Immediate mode", group: .modes)
public static let ipiClangModule: Option = Option("-ipi-clang-module", .separate, attributes: [.helpHidden, .frontend], metaVar: "<name>", helpText: "Mark a Clang module by name as project-internal (IPI). Public imports of the named module will be diagnosed.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This file is auto-generated (see readme). Do not hand-modify this file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated the Options following README directions

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, damn, the option update is breaking the newly added license header check. Feel free to do a hand fix of license header for now. Let me update makeOptions to generate the correct header.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, it is fixed in 87f4951bc0d7ad3abe1fbdb159441fe8175ec04b already. Just sync to main before you build makeOption.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

By a hand fix you mean reverting lines 1, 10, and 11?

@sepy97 sepy97 force-pushed the ipi-clang-module-flag branch from e161077 to 61f1d83 Compare May 27, 2026 21:04
@sepy97 sepy97 requested a review from cachemeifyoucan May 27, 2026 21:05
@sepy97

sepy97 commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@sepy97 sepy97 force-pushed the ipi-clang-module-flag branch 2 times, most recently from 7868050 to 4cc36aa Compare May 27, 2026 21:46
@sepy97

sepy97 commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@sepy97 sepy97 requested a review from nkcsgexi May 27, 2026 22:16
@sepy97

sepy97 commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Windows platform

@sepy97

sepy97 commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test Windows

@sepy97

sepy97 commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Windows Platform

@sepy97 sepy97 force-pushed the ipi-clang-module-flag branch from 4cc36aa to 5c0d70b Compare May 28, 2026 19:12
@sepy97

sepy97 commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@sepy97

sepy97 commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test Windows Platform

1 similar comment
@sepy97

sepy97 commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test Windows Platform

@sepy97

sepy97 commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Windows Platform

@cachemeifyoucan cachemeifyoucan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One file accidentally checked it. Otherwise LGTM.

Comment thread diff.txt Outdated
@@ -0,0 +1,159 @@
diff --git a/Sources/SwiftOptions/Options.swift b/Sources/SwiftOptions/Options.swift

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This file should not be here!!!

Add the `Option.ipiClangModule` definition and forward the ipi clang
module names to the frontend. Update the Options file

rdar://178067059
@sepy97 sepy97 force-pushed the ipi-clang-module-flag branch from 5c0d70b to ae6ed4f Compare May 28, 2026 20:11
@sepy97 sepy97 requested a review from cachemeifyoucan May 28, 2026 20:12
@sepy97

sepy97 commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@sepy97 sepy97 enabled auto-merge May 28, 2026 20:22
@sepy97

sepy97 commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Windows Platform

@sepy97 sepy97 merged commit 4a23498 into swiftlang:main May 31, 2026
26 checks passed
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.

3 participants