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

[SR-10116] Driver does not handle single-file -c -o correctly when doing multiple frontend invocations #52518

Open
jckarter opened this issue Mar 15, 2019 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself legacy driver Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project

Comments

@jckarter
Copy link
Member

Previous ID SR-10116
Radar None
Original Reporter @jckarter
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Driver
Assignee None
Priority Medium

md5: 51960b168e9e03fd58eea634ef3c3565

relates to:

  • SR-7704 swiftc -emit-module -c, driver documentation and diagnostics

Issue Description:

If you specify a single-file compilation job that requires multiple frontend invocations, such as swiftc -emit-module-path foo.swiftmodule -c -o foo.o foo.swift to simultaneously emit a module and an object output, then the driver ignores the -o flag. Passing -force-single-frontend-invocation works around this.

@belkadan
Copy link
Contributor

This is not quite a starter bug because the driver's a bit of a thorny mess, but it shouldn't be too hard to find where we decide whether it's okay to use -o to pick the name of an object file or SIL output and count the number of inputs.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself legacy driver Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project
Projects
None yet
Development

No branches or pull requests

2 participants