Skip to content

Commit e2b68c7

Browse files
authored
Add different exports.ld for cling
1 parent 3bf5cd7 commit e2b68c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/CppInterOp/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ if(EMSCRIPTEN)
122122
# unit tests main_module you get errors due to undefined symbols. The reading of the file
123123
# below into a SYMBOLS_LIST variable is a temporary workaround that exports the undefined
124124
# symbols from the shared library, until it can be determined why they are not being exported already.
125-
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/exports.ld" SYMBOLS_LIST)
125+
if (CPPINTEROP_USE_CLING)
126+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/cling-exports.ld" SYMBOLS_LIST)
127+
else()
128+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/exports.ld" SYMBOLS_LIST)
129+
endif()
126130

127131
# Replace newlines with spaces
128132
string(REPLACE "\n" " " SYMBOLS_LIST "${SYMBOLS_LIST}")

0 commit comments

Comments
 (0)