Skip to content

Commit c90937b

Browse files
committed
Fix compilation errors in SwiftRT-WASM.cpp
1 parent edbf6bb commit c90937b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

stdlib/public/runtime/ImageInspectionCommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#if !defined(__MACH__)
2323

24-
#if defined(__ELF__)
24+
#if defined(__ELF__) || defined(__wasm__)
2525
#define SWIFT_REFLECTION_METADATA_ELF_NOTE_MAGIC_STRING "swift_reflection_metadata_magic_string"
2626
#endif // defined(__ELF__)
2727

stdlib/public/runtime/SwiftRT-WASM.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "ImageInspectionELF.h"
13+
#include "ImageInspectionCommon.h"
14+
#include "../SwiftShims/MetadataSections.h"
1415

1516
#include <cstddef>
1617

0 commit comments

Comments
 (0)