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-3838] Swift Package Manager can't specify C-language mode (-std option) per module #5116

Closed
jpsim opened this issue Feb 2, 2017 · 3 comments
Labels

Comments

@jpsim
Copy link
Contributor

jpsim commented Feb 2, 2017

Previous ID SR-3838
Radar None
Original Reporter @jpsim
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 4c36458b6b227f7a0ce9fa50871d5a2e

duplicates:

Issue Description:

I'd like to make a SwiftPM Package that includes C++ code that requires being compiled with `-std c++0x`. However, the language mode is hardcoded here: https://github.com/apple/swift-package-manager/blob/swift-DEVELOPMENT-SNAPSHOT-2017-02-01-a/Sources/Build/BuildPlan.swift#L434-L442

Ideally, the Package.swift format would allow providing additional compiler flags, so I could specify the language mode passed to clang that I need.

Currently, when I attempt to compile my package with `swift build`, I get many "-Wc+11-extensions" errors. Compiling with `swift build -Xcc -std=c+0x` successfully compiles the package.

@ankitspd
Copy link
Member

ankitspd commented Feb 2, 2017

This will be addressed in build settings proposal

@jpsim
Copy link
Contributor Author

jpsim commented Feb 2, 2017

Has this proposal been filed already, or is this something that is intended to be pursued "eventually"?

@ankitspd
Copy link
Member

ankitspd commented Feb 3, 2017

It is in roadmap for Swift 4: https://lists.swift.org/pipermail/swift-build-dev/Week-of-Mon-20170123/000829.html

The proposal should be out soon!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants