Skip to content

Allow setting LINKER_DRIVER=auto to choose an appropriate value for the target sources #622

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

owenv
Copy link
Collaborator

@owenv owenv commented Jun 29, 2025

When LINKER_DRIVER=auto:

  • If at least some of the inputs were produced by Swift, use swiftc
  • Otherwise if at least some were C++/ObjC++, use clang++
  • Otherwise, use clang

When using clang or clang++, we continue to respect the corresponding per-arch and global override settings for each

@owenv
Copy link
Collaborator Author

owenv commented Jun 29, 2025

@swift-ci test

@owenv
Copy link
Collaborator Author

owenv commented Jun 29, 2025

@swift-ci test linux

@owenv owenv force-pushed the owenv/auto-linker-driver branch from 68c8654 to b7da033 Compare June 29, 2025 22:44
@owenv
Copy link
Collaborator Author

owenv commented Jun 29, 2025

@swift-ci test

1 similar comment
@owenv
Copy link
Collaborator Author

owenv commented Jun 29, 2025

@swift-ci test

@owenv owenv force-pushed the owenv/auto-linker-driver branch from b7da033 to 5af70b9 Compare June 30, 2025 04:09
@owenv
Copy link
Collaborator Author

owenv commented Jun 30, 2025

@swift-ci test

@owenv owenv force-pushed the owenv/auto-linker-driver branch from 5af70b9 to b860b49 Compare June 30, 2025 16:31
@owenv
Copy link
Collaborator Author

owenv commented Jun 30, 2025

@swift-ci test

@owenv owenv merged commit 78e7e1c into main Jun 30, 2025
24 checks passed
@owenv owenv deleted the owenv/auto-linker-driver branch June 30, 2025 17:28
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