Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0] Schedule an emit-module-separately job even if an input is not compilable #1589

Merged
merged 4 commits into from May 15, 2024

Conversation

xymus
Copy link
Contributor

@xymus xymus commented May 1, 2024

The following invocation should schedule an emit-module-separately job for src.swift and include other.dylib in the link job. This fixes an issue that would make the compiler instead schedule a deprecated merge-module job.

swiftc src.swift other.dylib -emit-library -emit-module

Risk: Low, not many clients use this path and emit-module-separately is more reliable than merge-module.
Scope: Projects calling the driver as an executable from cmake.
Reviewed by @artemcm
Cherry-pick of #1588
Resolves rdar://127238278

xymus added 3 commits May 1, 2024 09:12
…able

The following invocation should schedule an emit-module-separately job
for src.swift and include other.dylib in the link job.

```
swiftc -emit-library src.swift other.dylib
```

rdar://127238278
Fixes the failure in testDependencyScanningPathRemap.
@xymus xymus requested review from bnbarham and artemcm May 1, 2024 16:16
@xymus
Copy link
Contributor Author

xymus commented May 1, 2024

@swift-ci Please test

@xymus
Copy link
Contributor Author

xymus commented May 1, 2024

@swift-ci Please test

@xymus
Copy link
Contributor Author

xymus commented May 1, 2024

@swift-ci Please test Windows

@xymus
Copy link
Contributor Author

xymus commented May 15, 2024

@swift-ci Please test

@xymus xymus merged commit 6d2ada9 into apple:release/6.0 May 15, 2024
3 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.

None yet

2 participants