File tree Expand file tree Collapse file tree 4 files changed +21
-28
lines changed Expand file tree Collapse file tree 4 files changed +21
-28
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,12 @@ add_swift_target_library(swiftWASILibc ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_SD
104
104
105
105
GYB_SOURCES
106
106
${swift_platform_gyb_sources}
107
- WASI .swift.gyb
107
+ WASILibc .swift.gyb
108
108
109
109
SWIFT_COMPILE_FLAGS
110
110
${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS}
111
111
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
112
+ ${swift_platform_compile_flags}
112
113
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS} "
113
114
TARGET_SDKS WASI
114
115
INSTALL_IN_COMPONENT sdk-overlay
@@ -142,7 +143,7 @@ foreach(sdk ${SWIFT_SDKS})
142
143
set (glibc_modulemap_source "glibc.modulemap.gyb" )
143
144
set (glibc_header_source "SwiftGlibc.h.gyb" )
144
145
elseif ("${sdk} " STREQUAL "WASI" )
145
- set (glibc_modulemap_source "wasi.modulemap.gyb" )
146
+ set (glibc_modulemap_source "wasi-libc .modulemap.gyb" )
146
147
set (glibc_header_source "SwiftWASILibc.h.gyb" )
147
148
else ()
148
149
continue ()
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ //===--- wasi-libc.modulemap.gyb ------------------------------------------===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2020 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See https://swift.org/LICENSE.txt for license information
9
+ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ //===----------------------------------------------------------------------===//
12
+
13
+ module SwiftWASILibc [system] {
14
+ // C standard library
15
+ header "SwiftWASILibc.h"
16
+
17
+ export *
18
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments