We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f44d44 commit 22a6b84Copy full SHA for 22a6b84
Package.swift
@@ -470,8 +470,8 @@ extension Array where Element == PackageDescription.CXXSetting {
470
471
// Capture the testing library's commit info as C++ constants.
472
if let git {
473
- let testingLibraryVersion = if let tag = git.currentTag {
474
- result.append(.define("SWT_TESTING_LIBRARY_VERSION", to: #""\#(testingLibraryVersion)""#))
+ if let tag = git.currentTag {
+ result.append(.define("SWT_TESTING_LIBRARY_VERSION", to: #""\#(tag)""#))
475
} else {
476
result.append(.define("SWT_TESTING_LIBRARY_VERSION", to: "0"))
477
}
0 commit comments