Skip to content

Commit

Permalink
Guard inline asm with ifdef __wasm__
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Nov 8, 2022
1 parent 475d894 commit 2ffd167
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SwiftPackage/Sources/ICU4C_WASI/magic-for-autolink.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#ifdef __wasm__
__asm__(
".section .custom_section..swift1_autolink_entries,\"\",@\n"
".asciz \""
Expand All @@ -7,3 +8,4 @@ __asm__(
PACKAGE_DIR"/build/lib/libicuuc.a"
"\""
);
#endif

0 comments on commit 2ffd167

Please sign in to comment.