bjorn3
c950f2265e
Build rtstartup for MinGW from scratch
...
Rather than copying it from an existing sysroot
2023-01-14 17:02:21 +00:00
bjorn3
629eab79c1
Avoid hard-coded rustc when building wrappers
2023-01-14 14:18:11 +00:00
bjorn3
22c5249f68
Don't hard-code rustc path in get_rustc_version and get_default_sysroot
2023-01-14 14:18:11 +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
fd1e824d88
Minor changes to the TestRunner::new signature
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
a09712e0d2
Use fs::remove_dir_all instead of cargo clean
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
a3468770e3
Rustfmt
2023-01-13 16:13:26 +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
957d78c479
Fetch all cargo dependencies in ./y.rs prepare
2023-01-13 15:40:22 +00:00
bjorn3
1a89507d7c
Don't use the diff command in regex test
...
The output is small enough that getting a pretty diff isn't important.
In addition this reduces the amount of commands the build system depends
on.
2023-01-13 15:29:28 +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
40745694a0
Add fixme
2023-01-13 14:33:14 +00:00
bjorn3
63fae6a164
Introduce helpers for common test case commands
2023-01-13 14:19:54 +00:00
bjorn3
bb7ab8242a
Remove a lot of redundant rustc arguments for tests
2023-01-13 12:52:29 +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
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
dbfbb29717
Move LLVM simple-raytracer build to ./y.rs bench
...
cc #1290
2023-01-13 11:41:40 +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
fb788e375a
Don't install hyperfine in y.rs prepare
...
Missed in #1338
Part of #1290
2023-01-11 13:59:14 +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
4c97569a54
Move patched sysroot from build_sysroot/ to download/
2023-01-05 18:14:40 +00:00
bjorn3
14ca1df478
Enable debug assertions on CI
...
Fixes #1314
2022-12-16 11:27:21 +00:00
bjorn3
1ca07b9a44
Fix running simple-raytracer benchmark on Windows
2022-12-15 17:28:48 +00:00
bjorn3
cc3ac006a2
Move many env vars from CI configuration to the build system
2022-12-15 14:16:53 +00:00
bjorn3
0865e5a452
Set RUSTDOCFLAGS again
...
Was accidentally removed in 808cba2
2022-12-15 11:41:06 +00:00
bjorn3
f626185a5b
Update portable-simd to 582239ac3b
2022-12-15 11:09:45 +00:00
bjorn3
808cba2251
Extract Compiler creation from tests.rs
2022-12-15 10:28:53 +00:00
bjorn3
98a276b589
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
2022-12-14 19:30:46 +01:00
bjorn3
2bb3996244
Remove unnecessary git init
2022-12-14 15:23:24 +00:00
bjorn3
a45924cc21
Explicitly provide dummy git author name and email
...
This avoids the need to tell git beforehand about your name and email
2022-12-14 15:22:56 +00:00
bjorn3
b8a3c2dd30
Sync from rust fd02567705
2022-12-04 10:26:24 +01:00
Afonso Bordado
e12a882a67
S390X CI Support ( #1304 )
2022-12-04 00:23:01 +01:00
bjorn3
04eaaa043d
Fix crash with TAIT in the call codegen code
...
The new logic is closer to what cg_llvm does.
Fixes #1240
2022-12-02 12:44:14 +00:00
bjorn3
b6ac5a3ceb
Allow specifying where build artifacts should be written to
2022-12-01 19:00:32 +00:00
bjorn3
d7b02c307d
Fix installing hyperfine
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
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
f17dbfc933
Add rustdoc-clif wrapper
2022-10-28 12:51:15 +00:00
bjorn3
a24213d81b
Use 2021 edition for y.rs
2022-10-28 09:54:05 +00:00
bjorn3
63d1bf9920
Rustfmt cg_clif's build system
2022-10-23 16:43:48 +02:00
bjorn3
9950bd1dc5
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
2022-10-23 16:22:55 +02:00
Rageking8
54ee5ac073
more dupe word typos
2022-10-14 12:57:56 +08:00
bjorn3
d9bbac069b
Rustfmt
2022-08-24 17:06:47 +00:00
bjorn3
cfef0a4f8d
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
2022-08-24 18:40:58 +02:00
bjorn3
640c3f730a
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
2022-07-25 16:07:57 +02:00
bjorn3
d9025cebac
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
2022-05-15 12:32:19 +02:00
bjorn3
d1904e5855
Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20
2022-03-20 16:55:21 +01:00
bjorn3
b5cbb87e62
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
2022-02-23 11:49:34 +01:00
bjorn3
a5a14258e5
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30
2021-12-30 14:53:41 +01:00
bjorn3
799e067912
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
2021-12-20 18:56:35 +01:00
bjorn3
5d3b8e7c1b
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
2021-09-19 13:56:58 +02:00
bjorn3
d220159810
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
2021-08-06 16:26:56 +02:00
bjorn3
fb92375755
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
2021-07-07 11:14:20 +02:00