-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
636 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ context: | |
version: 3.1.45 | ||
|
||
build: | ||
number: 31 | ||
number: 33 | ||
|
||
outputs: | ||
- package: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 24 additions & 6 deletions
30
recipes/recipes_emscripten/cppinterop/patches/__clang_Interpreter_SetValueNoAlloc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,34 @@ | ||
diff --git a/lib/Interpreter/CMakeLists.txt b/lib/Interpreter/CMakeLists.txt | ||
index 103b331..8d0dd97 100644 | ||
index 103b331..0eb356c 100644 | ||
--- a/lib/Interpreter/CMakeLists.txt | ||
+++ b/lib/Interpreter/CMakeLists.txt | ||
@@ -17,6 +17,11 @@ if(EMSCRIPTEN) | ||
LINK_LIBS | ||
clangInterpreter | ||
) | ||
@@ -4,18 +4,23 @@ if(EMSCRIPTEN) | ||
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-s SIDE_MODULE=1") | ||
set(CMAKE_STRIP FALSE) | ||
|
||
- add_llvm_library(clangCppInterOp | ||
- SHARED | ||
- | ||
+ add_library(clangCppInterOp SHARED | ||
CppInterOp.cpp | ||
CXCppInterOp.cpp | ||
DynamicLibraryManager.cpp | ||
DynamicLibraryManagerSymbol.cpp | ||
Paths.cpp | ||
+ ) | ||
|
||
- # Additional libraries from Clang and LLD | ||
- LINK_LIBS | ||
- clangInterpreter | ||
+ target_link_libraries(clangCppInterOp clangInterpreter) | ||
+ | ||
+ target_link_options(clangCppInterOp PRIVATE | ||
+ PUBLIC "SHELL: -s WASM_BIGINT" | ||
+ PUBLIC "SHELL: -Wl,--export=__clang_Interpreter_SetValueNoAlloc" | ||
+ ) | ||
+ | ||
+ install(TARGETS clangCppInterOp | ||
+ LIBRARY DESTINATION lib | ||
) | ||
else() | ||
set(LLVM_LINK_COMPONENTS | ||
${LLVM_TARGETS_TO_BUILD} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.