Commit Graph

37 Commits

Author SHA1 Message Date
bjorn3
d5e2e23f48 Misc cleanups 2024-09-13 15:17:22 +00:00
bjorn3
45be990167 Inline prepare_stdlib into the sysroot build code
Also reduce visibility of a couple of statics
2024-09-12 19:04:11 +00:00
bjorn3
1b9645853a Remove --debug argument of y.sh
I rarely need a debug build of cg_clif, and even if I actually need one,
using package overrides in Cargo.toml to only do a debug build for the
rustc_codegen_cranelift crate works much better.
2024-08-10 14:16:53 +00:00
bjorn3
1bab6df32b Remove all checks for CI in the build system
And introduce the CG_CLIF_EXPENSIVE_CHECKS env var in the place.
2024-04-05 14:31:12 +00:00
bjorn3
f269cdd805 Move disabling incr comp and denying warnings to the CI config 2024-04-05 13:59:28 +00:00
bjorn3
b49adfeea5 Compile cg_clif with -Zallow-features=rustc_private
Fixes #1218
2023-10-02 13:26:42 +00:00
bjorn3
68f7b826be Use CARGO_ENCODED_RUSTFLAGS to support paths with spaces
Fixes #1391
2023-08-02 11:06:51 +02:00
bjorn3
e5197cf1de Switch the build system from super:: to crate::
This was a left over from when build_system/main.rs was at ./y.rs.
2023-07-24 13:27:17 +00:00
bjorn3
34d63e4c1d Use GHA log grouping 2023-07-12 16:45:42 +00:00
bjorn3
6b9af8cb36 Disable all incremental compilation for CARGO_BUILD_INCREMENTAL=false 2023-06-13 16:39:59 +00:00
bjorn3
a684753a68
Merge pull request #1374 from bjorn3/non_rustup_build3
Allow building and testing without rustup
2023-05-22 20:58:07 +02:00
bjorn3
24f1569c85 Enable overflow-checks on CI
Unlike rustc with cargo debug-assertions = true doesn't imply overflow-checks = true
2023-05-22 18:35:56 +00:00
bjorn3
de8a4d5d46 Remove all implicit "rustc" from rustc_info.rs 2023-05-22 17:10:55 +00:00
bjorn3
761a91ade8 Build CI dist artifacts without debug assertions
This significantly improves performance. For example for the
simple-raytracer benchmark it goes from a 13% improvement over LLVM to
39% improvement over LLVM.
2023-02-04 11:31:17 +00:00
bjorn3
bbb7a3b9b9 Rename Compiler variables for clarity 2023-01-14 14:18:11 +00:00
bjorn3
957d78c479 Fetch all cargo dependencies in ./y.rs prepare 2023-01-13 15:40:22 +00:00
bjorn3
70a1cb9e62 Pass around Compiler instead of target triples 2023-01-13 12:16:11 +00:00
bjorn3
14ca1df478 Enable debug assertions on CI
Fixes #1314
2022-12-16 11:27:21 +00:00
bjorn3
82b2d8e418 Introduce Dirs type to avoid hard coding src and dest locations 2022-12-01 19:00:32 +00:00
bjorn3
4529979330 Introduce RelPath 2022-12-01 19:00:32 +00:00
bjorn3
e75dfef4d4 Put all temporary build artifacts in build/ 2022-12-01 19:00:32 +00:00
bjorn3
cdae9bab58 Introduce CargoProject type and use it where possible 2022-11-27 18:53:00 +00:00
bjorn3
be305c2b1f Introduce cargo_command helper 2022-09-12 10:35:38 +00:00
bjorn3
b12286fec3 Let abi-checker take the full path to the cg_clif dylib 2022-09-12 10:35:38 +00:00
bjorn3
3c97227a43 Fix previous commit 2022-08-05 13:17:13 +00:00
bjorn3
e7bc81cc77 Disable incr comp globally on CI 2022-08-05 12:57:19 +00:00
bjorn3
2e65a8f2ca Use -Zcodegen-backend instead of a rustc replacement in cargo-clif 2022-04-29 19:13:41 +02: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
f296311925 Test on CI with unstable cg_clif features disabled
Part of #1084
2021-12-03 13:16:34 +01: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
e5563b5077 Improve windows support 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