File tree Expand file tree Collapse file tree 4 files changed +32
-2
lines changed Expand file tree Collapse file tree 4 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,21 @@ <h3><a class="header" href="#3-stack-overflow-is-occurring" id="3-stack-overflow
187
187
</ li >
188
188
</ ol >
189
189
< p > See also: < a href ="https://bugs.llvm.org/show_bug.cgi?id=37181 "> LLVM Bugzilla – wasm32: Allow placing the stack before global data</ a > </ p >
190
+ < h2 > < a class ="header " href ="#fatal-error-stdlibh-file-not-found " id ="fatal-error-stdlibh-file-not-found "> < code > fatal error: 'stdlib.h' file not found</ code > </ a > </ h2 >
191
+ < p > If you encounter this error, please make sure that:</ p >
192
+ < ul >
193
+ < li > You are using SwiftWasm toolchain (if you installed it as a toolchain, not as a Swift SDK)
194
+ < ul >
195
+ < li > Check < code > which swift</ code > and make sure it points to the SwiftWasm toolchain.</ li >
196
+ </ ul >
197
+ </ li >
198
+ < li > You are using the correct target triple:
199
+ < ul >
200
+ < li > < code > --triple wasm32-unknown-wasi --static-swift-stdlib</ code > if you installed as a < em > toolchain</ em > </ li >
201
+ < li > < code > --swift-sdk wasm32-unknown-wasi</ code > if you installed as a < em > Swift SDK</ em > </ li >
202
+ </ ul >
203
+ </ li >
204
+ </ ul >
190
205
191
206
</ main >
192
207
Original file line number Diff line number Diff line change @@ -706,6 +706,21 @@ <h3><a class="header" href="#3-stack-overflow-is-occurring" id="3-stack-overflow
706
706
</ li >
707
707
</ ol >
708
708
< p > See also: < a href ="https://bugs.llvm.org/show_bug.cgi?id=37181 "> LLVM Bugzilla – wasm32: Allow placing the stack before global data</ a > </ p >
709
+ < h2 > < a class ="header " href ="#fatal-error-stdlibh-file-not-found " id ="fatal-error-stdlibh-file-not-found "> < code > fatal error: 'stdlib.h' file not found</ code > </ a > </ h2 >
710
+ < p > If you encounter this error, please make sure that:</ p >
711
+ < ul >
712
+ < li > You are using SwiftWasm toolchain (if you installed it as a toolchain, not as a Swift SDK)
713
+ < ul >
714
+ < li > Check < code > which swift</ code > and make sure it points to the SwiftWasm toolchain.</ li >
715
+ </ ul >
716
+ </ li >
717
+ < li > You are using the correct target triple:
718
+ < ul >
719
+ < li > < code > --triple wasm32-unknown-wasi --static-swift-stdlib</ code > if you installed as a < em > toolchain</ em > </ li >
720
+ < li > < code > --swift-sdk wasm32-unknown-wasi</ code > if you installed as a < em > Swift SDK</ em > </ li >
721
+ </ ul >
722
+ </ li >
723
+ </ ul >
709
724
< h1 > < a class ="header " href ="#examples " id ="examples "> Examples</ a > </ h1 >
710
725
< p > This section shows you example usage of our toolchain.</ p >
711
726
< h1 > < a class ="header " href ="#importing-a-function-from-host-environments " id ="importing-a-function-from-host-environments "> Importing a function from host environments</ a > </ h1 >
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments