Skip to content

Commit a22df96

Browse files
authored
Use exports.ld to export symbols (#537)
1 parent 83d43df commit a22df96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Interpreter/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ if(EMSCRIPTEN)
130130
PRIVATE "SHELL: -s WASM_BIGINT"
131131
PRIVATE "SHELL: -s SIDE_MODULE=1"
132132
PRIVATE "SHELL: ${SYMBOLS_LIST}"
133-
PUBLIC "SHELL: -Wl,--export=__clang_Interpreter_SetValueNoAlloc"
134-
PUBLIC "SHELL: -Wl,--export=__clang_Interpreter_SetValueWithAlloc"
135133
)
136134
if (CPPINTEROP_ENABLE_TESTING)
137135
# When compiling Emscripten tests the shared library it links to is expected to be in the same folder as the compiled Javascript

lib/Interpreter/exports.ld

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@
4545
-Wl,--export=_ZNK5clang10RecordDecl19isInjectedClassNameEv
4646
-Wl,--export=_ZNK5clang11DeclContext6lookupENS_15DeclarationNameE
4747
-Wl,--export=_ZNK5clang17ClassTemplateDecl18getSpecializationsEv
48-
-Wl,--export=_ZNK5clang4Sema15getStdNamespaceEv
48+
-Wl,--export=_ZNK5clang4Sema15getStdNamespaceEv
49+
-Wl,--export=__clang_Interpreter_SetValueNoAlloc
50+
-Wl,--export=__clang_Interpreter_SetValueWithAlloc

0 commit comments

Comments
 (0)