Skip to content

Commit ac83e89

Browse files
File IO functionalities used in this package are available on WASI
1 parent 1d2e39c commit ac83e89

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

Package.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ extension Array where Element == PackageDescription.SwiftSetting {
130130

131131
.define("SWT_TARGET_OS_APPLE", .when(platforms: [.macOS, .iOS, .macCatalyst, .watchOS, .tvOS, .visionOS])),
132132

133-
.define("SWT_NO_FILE_IO", .when(platforms: [.wasi])),
134133
.define("SWT_NO_EXIT_TESTS", .when(platforms: [.iOS, .watchOS, .tvOS, .visionOS, .wasi])),
135134
.define("SWT_NO_SNAPSHOT_TYPES", .when(platforms: [.linux, .windows, .wasi])),
136135
.define("SWT_NO_DYNAMIC_LINKING", .when(platforms: [.wasi])),

cmake/modules/shared/CompilerSettings.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ add_compile_options(
2020
if(APPLE)
2121
add_compile_definitions("SWT_TARGET_OS_APPLE")
2222
endif()
23-
if(WASI)
24-
add_compile_definitions("SWT_NO_FILE_IO")
25-
endif()
2623
if(CMAKE_SYSTEM_NAME IN_LIST "iOS;watchOS;tvOS;visionOS;WASI")
2724
add_compile_definitions("SWT_NO_EXIT_TESTS")
2825
endif()

0 commit comments

Comments
 (0)