Commit Graph

39 Commits

Author SHA1 Message Date
bjorn3
2e65a8f2ca Use -Zcodegen-backend instead of a rustc replacement in cargo-clif 2022-04-29 19:13:41 +02:00
bjorn3
617171e930 Remove cg_clif_build_sysroot 2022-04-29 19:07:32 +02:00
bjorn3
944a48d3af Remove less of the sysroot build dir on recompilation 2022-04-27 17:31:07 +02:00
bjorn3
ef4512b7dc Codegen 128bit atomic loads and stores for compiler builtins as trap
128bit atomics are unstable and only enabled on AArch64 and x86_64 macOS.
Cranelift doesn't support 128bit atomics yet.
2022-03-19 12:56:03 +01:00
bjorn3
a900a5229a Download tarballs from github instead of cloning full repos
This saves 40-50s on CI as the repo history can be skipped
2022-03-15 12:44:06 +01:00
bjorn3
a48fea6dda Add and remove some fixmes 2022-03-13 17:58:02 +01:00
bjorn3
f606a5807c Rustup to rustc 1.60.0-nightly (09cb29c64 2022-02-15) 2022-02-16 12:43:07 +01:00
bjorn3
441e2e67fa Rustup to rustc 1.60.0-nightly (88fb06a1f 2022-02-05) 2022-02-06 14:50:12 +01:00
bjorn3
4dbd3196f9 Move most code from y.rs to build_system/mod.rs
y.rs can't be rustfmt'ed without making it no longer be a valid bash
script.
2022-01-09 19:30:07 +01:00
bjorn3
40b00f4200 Disable incremental compilation on CI
Fixes #1198
2021-12-30 14:07:58 +01:00
bjorn3
c63d8f3f96 Move incr comp enable to the build system 2021-12-30 13:03:32 +01:00
bjorn3
6b4e640dcb Only deny warnings for cg_clif build itself
cc #1213
2021-12-30 12:40:23 +01:00
bjorn3
0dd3d28cff Rename cargo executable to cargo-clif
This allows executing it like cargo clif build if you add it to your
PATH. It also fixes infinite recursion on Windows when invoking it as
Windows includes the current directory in PATH by default.

Fixes #971
2021-12-30 11:39:30 +01:00
bjorn3
d0f97fc039 Rustup to rustc 1.59.0-nightly (c5ecc1570 2021-12-15) 2021-12-16 14:11:04 +01:00
bjorn3
f296311925 Test on CI with unstable cg_clif features disabled
Part of #1084
2021-12-03 13:16:34 +01:00
bjorn3
516b478c81 Rustup to rustc 1.59.0-nightly (48a5999fc 2021-12-01) 2021-12-02 16:49:27 +01:00
bjorn3
7b894092c7 Rustup to rustc 1.58.0-nightly (dd549dcab 2021-11-25) 2021-11-26 16:21:01 +01:00
bjorn3
dfbc7eb6c7 Version the prebuilt libstd again
__CARGO_DEFAULT_LIB_METADATA got lost in the rewrite of the build system
from bash to rust
2021-11-23 14:25:28 +01:00
bjorn3
fd87c6dab9 Update to latest portable-simd version 2021-11-18 19:30:28 +01:00
bjorn3
1e5569d62c Re-enable incremental compilation for the sysroot
rust-lang/rust#74946 for fixed
2021-10-17 15:29:57 +02:00
bjorn3
4560603b1c Re-enable portable simd testing 2021-09-12 20:27:50 +02:00
bjorn3
66ccff19b8 Update protable-simd 2021-09-01 15:05:03 +02:00
bjorn3
0b007722ad Rustup to rustc 1.56.0-nightly (29ef6cf16 2021-08-31) 2021-09-01 14:21:36 +02:00
bjorn3
2abc12daad Fix y.rs build --sysroot llvm 2021-07-26 16:11:24 +02:00
bjorn3
a0fb0facdc Run stdsimd test suite 2021-07-25 18:45:56 +02:00
bjorn3
c2a9839686 Disable jit and inline-asm when building as part of rustc
Both features are not yet ready. Inline-asm is only supported on Linux
and requires explicitly specifying registers instead of register
classes. The jit has usability issues and may require the cg_clif
executable in the future.
2021-07-17 16:40:54 +02:00
bjorn3
53478823e4 Refactor cg_clif building 2021-07-04 18:15:13 +02:00
bjorn3
0d531c3737 Better config parsing and allow specifying host and target triple in config 2021-07-04 15:10:06 +02:00
bjorn3
55e0779708 Check if the patched sysroot source is up to date before using it
Fixes #1181
2021-07-02 19:14:02 +02:00
bjorn3
cda811173e Fix compilation for AArch64 2021-07-02 12:39:48 +02:00
bjorn3
4cbba98420 Rustup to rustc 1.55.0-nightly (6d820866a 2021-06-29) 2021-06-30 21:21:06 +02:00
bjorn3
80e9188fb1 Rewrite cargo.sh in rust 2021-06-20 12:56:47 +02:00
bjorn3
e5563b5077 Improve windows support 2021-06-19 13:58:32 +02:00
bjorn3
0d6b3dab65 Allow preserving the old sysroot 2021-06-19 13:58:32 +02:00
bjorn3
ad971bbed7 Rewrite build_sysroot.sh in rust 2021-06-19 13:58:32 +02:00
bjorn3
d71b12535e Merge the crate_patches dir into the patches dir 2021-06-19 13:58:32 +02:00
bjorn3
066d5f952c Rewrite prepare_sysroot_src.sh in rust 2021-06-19 13:58:32 +02:00
bjorn3
fe6a2892a6 Rewrite prepare.sh in rust 2021-06-19 13:54:25 +02:00
bjorn3
2db4e50618 Rewrite build.sh in rust
This makes it easier to compile cg_clif on systems that don't support
bash shell scripts like Windows
2021-06-19 13:54:25 +02:00