swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.72k stars 1.34k forks source link

[SR-3660] Add support for custom build configuration #5130

Open swift-ci opened 7 years ago

swift-ci commented 7 years ago
Previous ID SR-3660
Radar rdar://problem/40205598
Original Reporter jaybuff (JIRA User)
Type New Feature
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 2 | |Component/s | Package Manager | |Labels | New Feature | |Assignee | None | |Priority | Medium | md5: b376729fade38ce68c114991e74bd9fe

is duplicated by:

relates to:

Issue Description:

After reading https://github.com/apple/swift-package-manager/blob/master/Documentation/Reference.md#build-configurations I realized I want a configuration that gives me:

For builds that are going to be put on a server.

aciidgh commented 7 years ago

We don't yet support custom build configurations but I think it should be possible to generate debugging symbols in release mode by passing -g via Xswiftc i.e. $ swift build -Xswiftc -g -c release
Can you try that and report if that doesn't work for some reason?

aciidgh commented 6 years ago

@swift-ci create