Skip to content

Commit 5d38461

Browse files
committed
Minor fixes
1 parent a3ca4ab commit 5d38461

File tree

8 files changed

+26
-22
lines changed

8 files changed

+26
-22
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
/*.xcodeproj
55
xcuserdata/
66
.swiftpm
7+
.idea/
8+
.idea/

Package.resolved

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ let package = Package(
7272
dependencies: ["SwiftOptions", "ArgumentParser"]),
7373

7474
/// The `makeOptions` utility (for importing option definitions).
75-
.target(
76-
name: "makeOptions",
77-
dependencies: []),
75+
// .target(
76+
// name: "makeOptions",
77+
// dependencies: []),
7878
],
7979
cxxLanguageStandard: .cxx14
8080
)
@@ -95,13 +95,13 @@ if ProcessInfo.processInfo.environment["SWIFT_DRIVER_LLBUILD_FWK"] == nil {
9595
}
9696

9797
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
98-
package.dependencies += [
99-
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("main")),
100-
.package(url: "https://github.com/jpsim/Yams.git", .upToNextMinor(from: "4.0.0")),
101-
// The 'swift-argument-parser' version declared here must match that
102-
// used by 'swift-package-manager' and 'sourcekit-lsp'. Please coordinate
103-
// dependency version changes here with those projects.
104-
.package(url: "https://github.com/apple/swift-argument-parser.git", .branch("main")),
98+
package.dependencies += [
99+
.package(url: "https://github.com/apple/swift-tools-support-core.git", .branch("main")),
100+
.package(url: "https://github.com/jpsim/Yams.git", .upToNextMinor(from: "4.0.0")),
101+
// The 'swift-argument-parser' version declared here must match that
102+
// used by 'swift-package-manager' and 'sourcekit-lsp'. Please coordinate
103+
// dependency version changes here with those projects.
104+
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "0.3.2")),
105105
]
106106
} else {
107107
package.dependencies += [

Sources/SwiftDriver/Jobs/Toolchain+LinkerSupport.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,3 @@ extension DarwinToolchain {
229229
}
230230

231231
}
232-
233-
// TODO: Implement `addArgsToLinkStdlib` for `WindowsToolchain`.

Sources/SwiftDriver/Jobs/WindowsToolchain+LinkerSupport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ extension WindowsToolchain {
172172
}
173173
}
174174

175-
// Run clang++ in verbose mode if "-v" is set
175+
// Run clang in verbose mode if "-v" is set
176176
try commandLine.appendLast(.v, from: &parsedOptions)
177177

178178
// These custom arguments should be right before the object file at the

Tests/SwiftDriverTests/AssertDiagnosticsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class AssertDiagnosticsTests: FailableTestCase {
109109
}
110110
}
111111

112-
func testAssertDriverDiagosotics() throws {
112+
func testAssertDriverDiagnostics() throws {
113113
try assertNoDriverDiagnostics(args: "swiftc", "test.swift")
114114

115115
try assertDriverDiagnostics(args: "swiftc", "test.swift") { driver, verify in

Tests/SwiftDriverTests/IncrementalCompilationTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,11 @@ final class NonincrementalCompilationTests: XCTestCase {
314314

315315
final class IncrementalCompilationTests: XCTestCase {
316316

317+
#if os(Windows)
318+
var tempDir: AbsolutePath = AbsolutePath(ProcessEnv.vars["TEMP"]!)
319+
#else
317320
var tempDir: AbsolutePath = AbsolutePath("/tmp")
321+
#endif
318322

319323
let module = "theModule"
320324
var OFM: AbsolutePath {

Tests/SwiftDriverTests/XCTestManifests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extension AssertDiagnosticsTests {
77
// to regenerate.
88
static let __allTests__AssertDiagnosticsTests = [
99
("testAssertDiagnostics", testAssertDiagnostics),
10-
("testAssertDriverDiagosotics", testAssertDriverDiagosotics),
10+
("testAssertDriverDiagnostics", testAssertDriverDiagnostics),
1111
("testAssertNoDiagnostics", testAssertNoDiagnostics),
1212
]
1313
}

0 commit comments

Comments
 (0)