Skip to content

Commit 595c862

Browse files
committed
Fix Windows path parsing when the package is built in release configuration
forceWindowsPaths can be used to force Windows path parsing both on and off. Instead of defaulting it to false in release builds, we should not express any preference
1 parent 5695a88 commit 595c862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/System/Internals/Mocking.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ internal var mockingEnabled: Bool {
130130
@inline(__always)
131131
internal var forceWindowsPaths: Bool? {
132132
#if !ENABLE_MOCKING
133-
return false
133+
return nil
134134
#else
135135
return MockingDriver.forceWindowsPaths
136136
#endif

0 commit comments

Comments
 (0)