| ... | ... | @@ -28,22 +28,6 @@ PATH=$PWD/$WASMTIME:$PATH |
| 28 | 28 | # This will affect the cmake command below. |
| 29 | 29 | git config core.abbrev 9 |
| 30 | 30 | |
| 31 | | # This patch is a workaround for |
| 32 | | # https://bugs.llvm.org/show_bug.cgi?id=44870 / https://github.com/llvm/llvm-project/issues/191 |
| 33 | | # It only applies to the apt.llvm.org packages. |
| 34 | | patch <<'END_PATCH' |
| 35 | | --- CMakeLists.txt |
| 36 | | +++ CMakeLists.txt |
| 37 | | @@ -369,6 +369,7 @@ target_link_libraries(zig_cpp LINK_PUBLIC |
| 38 | | ${CLANG_LIBRARIES} |
| 39 | | ${LLD_LIBRARIES} |
| 40 | | ${LLVM_LIBRARIES} |
| 41 | | + "-Wl,/usr/lib/llvm-10/lib/LLVMPolly.so" |
| 42 | | ) |
| 43 | | |
| 44 | | add_library(opt_c_util STATIC ${OPTIMIZED_C_SOURCES}) |
| 45 | | END_PATCH |
| 46 | | |
| 47 | 31 | export CC=gcc-7 |
| 48 | 32 | export CXX=g++-7 |
| 49 | 33 | mkdir build |