Commit 908838a
authored
build-scripts/build_llvm.py: bump to llvm 18 (#4259)
* build-scripts/build_llvm.py: bump to llvm 18
cf. #4210
why not 20?
because, as of writing this, 19 is the latest released version for
the xtensa fork of llvm: https://github.com/espressif/llvm-project
why not 19?
because of a bug in the xtensa fork of llvm:
espressif/llvm-project#112
while we can use different versions for different targets,
it's nicer to use the same version everywhere when possible.
* spec-test-script/runtest.py: --size-level=0 for x86-64
with the recent version of LLVM, wamrc --size-level=1 often
generates R_X86_64_32S relocations which fail on load with
the infamous error:
"relocation truncated to fit R_X86_64_32S failed"
it seems that these relocations are often for jump tables.
this commit workarounds it with --size-level=0.
an alternative is to disable jump tables. (although it seems that
jump tables are not the only source of these relocations.)
cf. #3035
it might be better to do this in wamrc itself. however, currently
target info is not available there in case of native compilation.
related: #3356
* wamr-compiler: size_level=0 for sgx mode
cf. #30351 parent 1a72dcf commit 908838a
File tree
3 files changed
+6
-5
lines changed- build-scripts
- tests/wamr-test-suites/spec-test-script
- wamr-compiler
3 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
| 715 | + | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| |||
0 commit comments