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

Turning off whole-module optimization not (fully) supported? #903

Open
dabrahams opened this issue Jan 22, 2024 · 0 comments
Open

Turning off whole-module optimization not (fully) supported? #903

dabrahams opened this issue Jan 22, 2024 · 0 comments

Comments

@dabrahams
Copy link

My project is blocked by an apparent whole-module optimization buh. I am unable to work around it by turning off whole-module optimization because swift-llbuild complains of a missing dependencies file.

Reproducer:

  • swift package init --type executable
  • add swiftSettings: [.unsafeFlags(["-no-whole-module-optimization"])] to the executable target
  • swift build -c release

This problem could be worked around in the compiler, in swift-llbuild, or in the driver by separately issuing the build command without -no-whole-module-optimization included, which generates the needed dependencies file. I am filing issues against all three projects in the hopes that the maintainers can agree on a possible solution.

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

No branches or pull requests

1 participant