Skip to content

Commit d04605a

Browse files
authored
Merge branch 'compiler-research:main' into undo-repl
2 parents 7a6ce60 + 7d9be77 commit d04605a

File tree

5 files changed

+6
-14
lines changed

5 files changed

+6
-14
lines changed

.github/workflows/emscripten.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ jobs:
327327
-DLLVM_ENABLE_THREADS=OFF \
328328
-G Ninja \
329329
../llvm
330-
emmake ninja clang clangInterpreter clangStaticAnalyzerCore lld -j ${{ env.ncpus }}
330+
emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lld -j ${{ env.ncpus }}
331331
fi
332332
cd ../
333333
rm -rf $(find . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")

Emscripten-build-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release \
7070
-DLLVM_INCLUDE_TESTS=OFF \
7171
-DLLVM_ENABLE_THREADS=OFF \
7272
../llvm
73-
emmake make clang -j $(nproc --all)
74-
emmake make clang-repl -j $(nproc --all)
73+
emmake make libclang -j $(nproc --all)
74+
emmake make clangInterpreter clangStaticAnalyzerCore -j $(nproc --all)
7575
emmake make lld -j $(nproc --all)
7676
```
7777

docs/Emscripten-build-instructions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ executing the following
8686
-DLLVM_INCLUDE_TESTS=OFF \
8787
-DLLVM_ENABLE_THREADS=OFF \
8888
../llvm
89-
emmake make clang -j $(nproc --all)
90-
emmake make clang-repl -j $(nproc --all)
89+
emmake make libclang -j $(nproc --all)
90+
emmake make clangInterpreter clangStaticAnalyzerCore -j $(nproc --all)
9191
emmake make lld -j $(nproc --all)
9292
9393
Once this finishes building we need to take note of where we built our

lib/Interpreter/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,7 @@ if(EMSCRIPTEN)
122122

123123
# Replace newlines with spaces
124124
string(REPLACE "\n" " " SYMBOLS_LIST "${SYMBOLS_LIST}")
125-
126-
#FIXME: Setting no_soname=1 is needed until https://github.com/emscripten-core/emscripten/blob/ac676d5e437525d15df5fd46bc2c208ec6d376a3/cmake/Modules/Platform/Emscripten.cmake#L36
127-
# is patched out of emsdk, as --soname is not recognised by emscripten. A PR to do this has been done here https://github.com/emscripten-core/emscripten/pull/23453
128-
#FIXME: A patch is needed to llvm to remove -Wl,-z,defs since it is now recognised on emscripten. What needs to be removed is here
129-
# https://github.com/llvm/llvm-project/blob/128e2e446e90c3b1827cfc7d4d19e3c0976beff3/llvm/cmake/modules/HandleLLVMOptions.cmake#L318 . The PR to do try to do this is here
130-
# https://github.com/llvm/llvm-project/pull/123396
125+
131126
set_target_properties(clangCppInterOp
132127
PROPERTIES NO_SONAME 1
133128
)

unittests/CppInterOp/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
set(LLVM_LINK_COMPONENTS
2-
Support
3-
)
41
if (EMSCRIPTEN)
52
# Omitting CUDATest.cpp since Emscripten build currently has no GPU support
63
# For Emscripten builds linking to gtest_main will not suffice for gtest to run

0 commit comments

Comments
 (0)