Commit 09edfeb
community/wasm-micro-runtime: build with non-default llvm
Building with llvm 21 results in the error below. Support for llvm 21
upstream is in progress but does not appear to be ready at this time.
Rebuild with llvm 20 for now.
```
/home/buildozer/aports/community/wasm-micro-runtime/src/wasm-micro-runtime-WAMR-2.3.0/core/iwasm/compilation/aot_llvm.c: In function 'aot_create_comp_context':
/home/buildozer/aports/community/wasm-micro-runtime/src/wasm-micro-runtime-WAMR-2.3.0/core/iwasm/compilation/aot_llvm.c:2580:31: error: implicit declaration of function 'LLVMOrcThreadSafeContextGetContext' [-Wimplicit-function-declaration]
2580 | if (!(comp_ctx->context = LLVMOrcThreadSafeContextGetContext(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildozer/aports/community/wasm-micro-runtime/src/wasm-micro-runtime-WAMR-2.3.0/core/iwasm/compilation/aot_llvm.c:2580:29: error: assignment to 'LLVMContextRef' {aka 'struct LLVMOpaqueContext *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
2580 | if (!(comp_ctx->context = LLVMOrcThreadSafeContextGetContext(
| ^
```
Ref: bytecodealliance/wasm-micro-runtime#46541 parent de33a7a commit 09edfeb
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
0 commit comments