bjorn3
134dc33485
Fix testing with unstable features disabled
2023-05-24 17:31:25 +00:00
bjorn3
5b3bc29008
Allow testing a cranelift backend built into rustc itself
...
This avoids building cranelift twice in rust's CI and is a lot easier
than trying to make building of codegen backends work from within a
cargo invocation done by rust's build system.
2023-05-24 17:27:28 +00:00
bjorn3
a2f720d9fe
Allow building and testing without rustup
...
This can be done by installing the nightly specified in
rust-toolchain.toml and then pointing the CARGO, RUSTC and RUSTDOC env
vars to the right executables.
2023-05-22 17:17:05 +00:00
bjorn3
22befab611
Avoid hard-coding rustc path in prepare.rs
2023-05-22 17:17:05 +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
de8a4d5d46
Remove all implicit "rustc" from rustc_info.rs
2023-05-22 17:10:55 +00:00
bjorn3
a43f08363e
Benchmark clif release builds with ./y.rs bench
2023-05-14 12:19:11 +00:00
bjorn3
4435686a48
Fix warnings when building the build system in rust's CI
2023-04-13 13:17:01 +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
7095783268
Only run abi-cafe on cg_clif's CI
2023-01-16 11:21:37 +00:00
bjorn3
4dbafefe74
Return Compiler from build_sysroot
2023-01-14 14:18:11 +00:00
bjorn3
bbb7a3b9b9
Rename Compiler variables for clarity
2023-01-14 14:18:11 +00:00
bjorn3
5e452ba616
Set RUSTC and RUSTDOC env vars to invalid values to catch forgetting to set them
2023-01-14 14:18:11 +00:00
bjorn3
9bc113fb3c
Minor consistency improvement
2023-01-14 14:18:11 +00:00
bjorn3
bdcbf47df3
Improve readme and build system help message
2023-01-13 16:34:43 +00:00
bjorn3
70a1cb9e62
Pass around Compiler instead of target triples
2023-01-13 12:16:11 +00:00
bjorn3
cf22470de7
Disable CG_CLIF_DISPLAY_CG_TIME by default
...
It is a lot of noise without much benefit
2023-01-13 11:42:02 +00:00
bjorn3
e14e5c2af1
Don't use hyperfine during testing
...
A new command ./y.rs bench is introduced for benchmarking. This change
allows skipping hyperfine installation in ./y.rs prepare and thus avoids
writing to ~/.cargo/bin.
2023-01-05 18:14:59 +00:00
bjorn3
cc3ac006a2
Move many env vars from CI configuration to the build system
2022-12-15 14:16:53 +00:00
bjorn3
b6ac5a3ceb
Allow specifying where build artifacts should be written to
2022-12-01 19:00:32 +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
5e97a3951d
Make sure the target dir is always explicitly set when using cargo
2022-12-01 19:00:32 +00:00
bjorn3
9c21990283
Rename target_dir to dist_dir in a couple of places
2022-11-28 15:02:08 +00:00
bjorn3
26d48c9a37
Rename the build/ directory to dist/
...
This will allow putting all temporary build artifacts in build/ in the
future, keeping all the build output artifacts in dist/
2022-11-28 13:01:49 +00:00
Afonso Bordado
ba56e8f313
Remove MSVC Check
2022-09-26 19:21:26 +01:00
bjorn3
7dccb51fe3
Abi-checker got renamed to abi-cafe
2022-09-26 13:56:18 +02:00
bjorn3
b12286fec3
Let abi-checker take the full path to the cg_clif dylib
2022-09-12 10:35:38 +00:00
Afonso Bordado
7610be478f
Move abi-checker to y.rs test
2022-08-06 21:24:38 +01:00
Afonso Bordado
3bd9821342
Initial ABI Checker support
2022-08-06 15:56:37 +01: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
f588bfa095
Assume host target in get_file_name
2022-07-30 23:04:59 +01:00
Afonso Bordado
2f1380036c
Cleanup meaningless changes
2022-07-30 22:32:06 +01:00
Afonso Bordado
437b441ff5
Use get_file_name everywhere for better cross compilation support
2022-07-30 13:06:37 +01:00
Afonso Bordado
d0599350a7
Misc cleanups to the test runner
2022-07-30 12:50:05 +01:00
Afonso Bordado
3ce83dc469
Move test.sh to y.rs test
2022-07-30 11:15:51 +01:00
bjorn3
617171e930
Remove cg_clif_build_sysroot
2022-04-29 19:07:32 +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