File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,8 @@ endif()
386
386
add_swift_executable (plutil
387
387
SOURCES
388
388
Tools/plutil/main.swift
389
+ TARGET
390
+ ${CMAKE_C_COMPILER_TARGET}
389
391
CFLAGS
390
392
-F${CMAKE_CURRENT_BINARY_DIR}
391
393
LINK_FLAGS
@@ -409,6 +411,8 @@ add_swift_executable(plutil
409
411
410
412
if (ENABLE_TESTING )
411
413
add_swift_executable (xdgTestHelper
414
+ TARGET
415
+ ${CMAKE_C_COMPILER_TARGET}
412
416
CFLAGS
413
417
-F${CMAKE_CURRENT_BINARY_DIR}
414
418
LINK_FLAGS
@@ -528,6 +532,8 @@ if(ENABLE_TESTING)
528
532
TestFoundation/TestUUID.swift
529
533
TestFoundation/TestXMLDocument.swift
530
534
TestFoundation/TestXMLParser.swift
535
+ TARGET
536
+ ${CMAKE_C_COMPILER_TARGET}
531
537
CFLAGS
532
538
-F${CMAKE_CURRENT_BINARY_DIR}
533
539
LINK_FLAGS
Original file line number Diff line number Diff line change 6
6
// See http://swift.org/LICENSE.txt for license information
7
7
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
- #if os(macOS) || os(iOS )
9
+ #if canImport(Darwin )
10
10
import Darwin
11
11
import SwiftFoundation
12
- #elseif os(Linux )
12
+ #elseif canImport(Glibc )
13
13
import Foundation
14
14
import Glibc
15
- #elseif os(Windows )
15
+ #elseif canImport(MSVCRT )
16
16
import Foundation
17
17
import MSVCRT
18
18
#endif
You can’t perform that action at this time.
0 commit comments