Skip to content

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 artemcm and bnbarham 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 swiftlang:release/6.0 May 15, 2024
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.

2 participants