Sylvestre Ledru
17ec1fb485
fix the sed
2022-10-12 23:25:44 +02:00
Sylvestre Ledru
b1e491b58b
don't search for llvm-bolt in cmake https://github.com/llvm/llvm-project/issues/58317
2022-10-12 16:19:16 +02:00
Sylvestre Ledru
a5b9f33284
Disable LTO for now
2022-10-12 16:16:36 +02:00
Sylvestre Ledru
71e2f5a23e
add more checks in the script
2022-10-11 11:22:31 +02:00
Sylvestre Ledru
a235abc1ef
Only enable LTO for some archs
2022-10-11 09:16:43 +02:00
Sylvestre Ledru
0988deb2e8
testing: install bolt
2022-10-11 08:56:54 +02:00
Sylvestre Ledru
6097504bdd
fix version
2022-10-10 23:48:11 +02:00
Sylvestre Ledru
0b5d5a54a5
add libbolt to the list
2022-10-10 20:08:28 +02:00
Sylvestre Ledru
3910acf494
consistencies in the path
2022-10-10 19:59:27 +02:00
Sylvestre Ledru
66d973fe30
add some debug messages
2022-10-10 19:59:19 +02:00
Sylvestre Ledru
bce4eded80
wasm: fail early
2022-10-10 18:54:50 +02:00
Sylvestre Ledru
b241afb285
Merge remote-tracking branch 'origin/14' into 15
2022-10-10 14:58:08 +02:00
Sylvestre Ledru
be4a884bdc
bolt: add description
2022-10-10 14:56:07 +02:00
Sylvestre Ledru
a62bbeb425
remove artifact
2022-10-10 14:55:48 +02:00
Sylvestre Ledru
6d0f0bba36
fix a test when running from a symlinked dir
2022-10-10 13:49:21 +02:00
Sylvestre Ledru
ca9dbba24d
Don't build wasm target on arm64 armel mips64el mipsel ppc64el armhf for now
2022-10-10 13:47:36 +02:00
Sylvestre Ledru
18f70bf18e
fix the cmake detection with libmlir
2022-10-09 20:34:54 +02:00
Sylvestre Ledru
4dbb897faa
fix the cmake detection with libmlir
2022-10-09 20:34:40 +02:00
Sylvestre Ledru
a6fac2cad1
also propose to install bolt
2022-10-09 20:19:20 +02:00
Sylvestre Ledru
8aa5816612
Only ship libbolt_rt_hugify.a & libbolt_rt_instr.a on amd64
2022-10-09 20:10:35 +02:00
Sylvestre Ledru
8e140c1781
improve changelog
2022-10-09 19:32:52 +02:00
Sylvestre Ledru
f9a9e959de
fix some parallel executions
2022-10-09 15:26:55 +02:00
Sylvestre Ledru
12a4fecdca
fail the build if libfuzzer doesn't build
2022-10-09 13:47:44 +02:00
Sylvestre Ledru
0ee9d69daa
Build libfuzzer with C++ 17
2022-10-09 13:47:24 +02:00
Sylvestre Ledru
6239dccef0
transform the error in a warning
2022-10-08 15:25:15 +02:00
Sylvestre Ledru
187d089749
LTO improvements
2022-10-08 15:25:15 +02:00
Sylvestre Ledru
9a669dea39
fix a test when running from a symlinked dir
2022-10-08 15:25:15 +02:00
Sylvestre Ledru
047a9ffd66
Build using LTO
2022-10-08 15:25:15 +02:00
Sylvestre Ledru
34e77c5f0a
fix declaration
2022-10-08 10:59:42 +02:00
Sylvestre Ledru
194ccea999
prepare upload
2022-10-08 10:09:17 +02:00
Sylvestre Ledru
3219c23763
rebase of the patches
2022-10-08 10:02:11 +02:00
Sylvestre Ledru
ff4d2206cf
Merge remote-tracking branch 'origin/14' into 15
2022-10-08 09:57:30 +02:00
Sylvestre Ledru
8681b0ebb1
improve the wasm check
2022-10-07 20:20:31 +02:00
Sylvestre Ledru
6c7377e299
remove unused stuff for mlir/cmake
2022-10-07 20:20:12 +02:00
Sylvestre Ledru
7e49b81826
suggest wasi-libc for the compiler
2022-10-07 19:37:15 +02:00
Sylvestre Ledru
ddab807aab
Allow libunwind-dev to be coinstallable ( Closes : #1004112 )
2022-10-07 19:36:46 +02:00
Sylvestre Ledru
1c709f18fd
add missing header?
2022-10-07 17:09:28 +02:00
Sylvestre Ledru
2d7818bea0
Fix conflict
2022-10-07 16:20:03 +02:00
Sylvestre Ledru
dc10170928
Fix some hardcoded paths ( Closes : #1020847 )
2022-10-07 16:18:46 +02:00
Sylvestre Ledru
cd3fb411f7
fix a typo
2022-10-07 16:13:56 +02:00
Sylvestre Ledru
1acd3cdd41
remove old patch
2022-10-07 16:11:21 +02:00
Sylvestre Ledru
14a1616e71
prepare upload
2022-10-07 16:10:23 +02:00
Sylvestre Ledru
990e0ee145
move compiler-rt patches
2022-10-07 16:10:13 +02:00
Sylvestre Ledru
e84ec84c01
move libcxx patches
2022-10-07 16:08:44 +02:00
Sylvestre Ledru
2084cb707a
rebase + move wasm patches
2022-10-07 16:07:22 +02:00
Sylvestre Ledru
86285b0da4
add a check for Faidon's change
2022-10-07 16:02:10 +02:00
Sylvestre Ledru
f6300a1af1
Document Faidon's patches
2022-10-07 15:57:57 +02:00
Sylvestre Ledru
26d4b8da05
Fix more typo
2022-10-07 15:57:43 +02:00
Faidon Liambotis
649278148f
Add support for loading wasi-libc from /usr
...
The WebAssembly target seems to have been designed to be always passed a
--sysroot, likely because of being tested to work only with the
WASI-SDK. This results into passing bare, non-existing paths in include
paths, such as:
-internal-isystem /include/wasm32-wasi -internal-isystem /include
(and similar for /lib/).
In Debian, the wasi-libc package ships its files in
/usr/include/wasm32-wasi, /usr/lib/wasm32-wasi etc.
Add support in the target for including paths from /usr as well. To
avoid changing the code in more intrusive ways (to do e.g. what the
Linux target does) add a bit of an indirection where the "sysroot"
defaults to "/usr" instead of the empty string. This should probably be
adjusted a bit if it were to be upstreamed.
Closes : #1020746
2022-10-07 15:52:28 +02:00
Faidon Liambotis
076705fe8e
Default to compiler-rt for WebAssembly (wasm32/64)
...
Our packaging overrides the upstream choice for rtlib to default always
to libgcc. Unfortunately, libgcc is not available for WebAssembly
(wasm32/wasm64 targets). This makes every build to -target
wasm32-unknown-wasi fail, unless one passes --rtlib=compiler-rt.
Patch the upstream source to default, and only accept, compiler-rt for
the WebAssembly target to make everything work out of the box. This
mirrors similar code that the upstream Darwin and Fuchsia targets have.
GCC seems fairly far from supporting WebAssembly. If/when that day
comes, this patch can be dropped.
2022-10-07 15:52:15 +02:00