We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: d3941d6d3d807f3debd3b3b6b3efdd39
Issue Description:
SwiftPM is passing the wrong language standard option, when the C++ language version is overridden:
ddunbar@ozzy-5:foo$ find . . ./.gitignore ./Package.swift ./README.md ./Sources ./Sources/foo ./Sources/foo/a.c ./Sources/foo/a.cpp $ cat Package.swift // swift-tools-version:4.0 import PackageDescription let package = Package( name: "foo", targets: [ .target( name: "foo", dependencies: []), ], cxxLanguageStandard: .cxx14 ) $ swift build warning: no include directory found for target 'foo'; libraries cannot be imported without public headersCompile foo a.cpp Compile foo a.c error: invalid argument '-std=c++14' not allowed with 'C' error: terminated(1): /Xcode/Edge9E57a/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /private/tmp/foo/.build/debug.yaml main
The text was updated successfully, but these errors were encountered:
/cc @aciidb0mb3r
Sorry, something went wrong.
@swift-ci create
#1404
--
commit 90abb3c (g/master, master) Author: Ankit Aggarwal <ankit_aggarwal@apple.com> Date: Thu Nov 30 14:55:37 2017 -0800
[Build] Add lang std flag per source file
We were adding language standard flag per target which is wrong because a Clang target can contain mixed C and C++ files.
No branches or pull requests
Additional Detail from JIRA
md5: d3941d6d3d807f3debd3b3b6b3efdd39
Issue Description:
SwiftPM is passing the wrong language standard option, when the C++ language version is overridden:
The text was updated successfully, but these errors were encountered: