Commit Graph

41 Commits

Author SHA1 Message Date
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
84afcee743 Improve benchmarking step summary format 2023-07-16 12:54:48 +00:00
bjorn3
448b7a3a12 Record GHA step summaries for benchmarking 2023-07-16 12:33:39 +00:00
bjorn3
c137418bde Explicitly disable git gpg signing
Otherwise building fails if the user has globally enabled gpg signing.

Fixes #1384
2023-07-12 17:21:14 +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
8ad9e9f861 Ensure everything has a lockfile 2023-06-13 16:39:59 +00:00
bjorn3
b1d8b7186c Only pass --frozen to cargo when it is passed to y.rs 2023-05-22 17:17:05 +00:00
bjorn3
2155c03500 Inline Compiler::bootstrap_with_triple 2023-05-22 17:10:55 +00:00
bjorn3
88ae8fc9c8 Allow passing more than two commands to benchmark to hyperfine_command 2023-05-14 12:04: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
3ba9b13490 Don't download abi-cafe and simple-raytracer in ./y.rs prepare
Instead download them on the fly
2023-01-27 18:44:19 +00:00
bjorn3
4e87f13054 Fix a couple of TOCTOU occurences 2023-01-19 15:58:40 +00:00
bjorn3
abcff71bec Significantly speed up assembling of sysroots
By avoiding some redundant rustc calls and stripping debuginfo for
wrappers. ./y.rs build --sysroot none now runs 44% faster.

Benchmark 1: ./y_before.bin build --sysroot none
  Time (mean ± σ):      2.200 s ±  0.038 s    [User: 2.140 s, System: 0.653 s]
  Range (min … max):    2.171 s …  2.303 s    10 runs

Benchmark 2: ./y_after.bin build --sysroot none
  Time (mean ± σ):      1.528 s ±  0.020 s    [User: 1.388 s, System: 0.490 s]
  Range (min … max):    1.508 s …  1.580 s    10 runs

Summary
  './y_after.bin build --sysroot none' ran
    1.44 ± 0.03 times faster than './y_before.bin build --sysroot none'
2023-01-15 14:14:13 +00:00
bjorn3
bbb7a3b9b9 Rename Compiler variables for clarity 2023-01-14 14:18:11 +00:00
bjorn3
a09712e0d2 Use fs::remove_dir_all instead of cargo clean 2023-01-14 14:18:11 +00:00
bjorn3
be8f656fac Pass --frozen to cargo to ensure ./y.rs prepare fetches all deps 2023-01-13 16:13:26 +00:00
bjorn3
890c61216a Set core.autocrlf=false in the build system instead of CI config 2023-01-13 15:29:26 +00:00
bjorn3
9a15db6dd0 Add git_command helper 2023-01-13 15:28:47 +00:00
bjorn3
f311ef5a2e Share cross-compilation code between building and testing 2023-01-13 12:32:20 +00:00
bjorn3
70a1cb9e62 Pass around Compiler instead of target triples 2023-01-13 12:16:11 +00:00
bjorn3
868638393e Rustfmt 2023-01-11 15:23:15 +00:00
bjorn3
caacef29e6 Retry downloads on network failure
Fixes #1280
2023-01-11 14:14:14 +00:00
bjorn3
808cba2251 Extract Compiler creation from tests.rs 2022-12-15 10:28:53 +00:00
bjorn3
b8a3c2dd30 Sync from rust fd02567705 2022-12-04 10:26:24 +01: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
Maybe Waffle
268219da02 Use as_deref in compiler (but only where it makes sense) 2022-11-16 21:58:58 +00:00
bjorn3
9950bd1dc5 Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23 2022-10-23 16:22:55 +02:00
bjorn3
a65c881aa3 Introduce hyperfine_command helper 2022-09-12 10:35:38 +00:00
bjorn3
be305c2b1f Introduce cargo_command helper 2022-09-12 10:35:38 +00:00
bjorn3
cfef0a4f8d Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24 2022-08-24 18:40:58 +02:00
bjorn3
e7bc81cc77 Disable incr comp globally on CI 2022-08-05 12:57:19 +00:00
bjorn3
0db9094231 Rustfmt 2022-07-31 10:15:56 +00:00
Afonso Bordado
3ce83dc469 Move test.sh to y.rs test 2022-07-30 11:15:51 +01:00
bjorn3
fb92375755 Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07 2021-07-07 11:14:20 +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