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-6054] Add driver option "-x <type>", which would treat subsequent input files as having the given type #48611

modocache mannequin opened this issue Oct 4, 2017 · 0 comments


Copy link

@modocache modocache mannequin commented Oct 4, 2017

Previous ID SR-6054
Radar None
Original Reporter @modocache
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels New Feature, Driver
Assignee None
Priority Medium

md5: 7fb46907f4a7e10469ae758d94248687

Issue Description:

This is a task for a FIXME left in swift/lib/Driver/Driver.cpp four years ago: "FIXME: add -x support (or equivalent)".

This is a reference to the Clang option -x, defined here:

Currently, the Swift compiler determines the types of its inputs based on file name: files ending in a .sil extension are SIL files, .swift are Swift source files, and an empty or unrecognized extension is assumed to be an object file.

A -x option would allow users to invoke swiftc -x swift my-swift-source-file, such that my-swift-source-file would be processed as a Swift source file, even though it lacks a .swift extension.

@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
None yet

No branches or pull requests

0 participants