Commit Graph

3449 Commits

Author SHA1 Message Date
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
395eaa1538 Remove Test nightly Cranelift workflow
Cranelift makes api breaking changes often enough that this workflow
fails half of the time. As such in practice I completely ignore it's
result and push an update to a branch after Cranelift branches to test
everything on CI. In this update I immediately fix the fallout of api
breaking changes.
2023-01-14 14:17:43 +00:00
bjorn3
8af4eacc8c Update FreeBSD to 13.1
This fixes the certificate error
2023-01-13 18:36:22 +00:00
bjorn3
20a829acb4
Merge pull request #1339 from bjorn3/better_compiler_management
Many build system improvements
2023-01-13 19:01:01 +01:00
bjorn3
bdcbf47df3 Improve readme and build system help message 2023-01-13 16:34:43 +00:00
bjorn3
3a27253289 Enable VSCode formatOnSave 2023-01-13 16:13:26 +00:00
bjorn3
a3468770e3 Rustfmt 2023-01-13 16:13:26 +00:00
bjorn3
288c067863 Set panic=abort for the build system
This saves about 60ms of build time
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
397fafa160 Don't require git user to be configured for testing rust 2023-01-13 13:51:51 +00:00
bjorn3
af99a369c4 Use sparse cargo registry 2023-01-13 13:48:52 +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
Albert Larsan
4e47bd0464 Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
bjorn3
20429c00b2
Merge pull request #1338 from bjorn3/build_system_rework5
Avoid clobbering build_system/ and ~/.cargo/bin
2023-01-05 19:57:10 +01: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
da37e16c23 Remove debuginfo files for compiled y.rs in clean_all.sh 2023-01-05 18:14:55 +00:00
bjorn3
4c97569a54 Move patched sysroot from build_sysroot/ to download/ 2023-01-05 18:14:40 +00:00
bjorn3
571405deea Enable some fixed rustc tests
cc #381
2023-01-04 15:30:20 +00:00
bjorn3
97e2213c3c Enable inline stack probes on AArch64
Fixes #661
2022-12-22 14:03:02 +00:00
bjorn3
debd45cc7b Update to cranelift 0.91
Closes #1307
2022-12-22 14:02:47 +00:00
bors
928d6566d7 Auto merge of #105613 - Nilstrieb:rename-assert_uninit_valid, r=RalfJung
Rename `assert_uninit_valid` intrinsic

It's not about "uninit" anymore but about "filling with 0x01 bytes" so the name should at least try to reflect that.

This is actually not fully correct though, as it does still panic for all uninit with `-Zstrict-init-checks`. I'm not sure what the best way is to deal with that not causing confusion. I guess we could just remove the flag? I don't think having it makes a lot of sense anymore with the direction that we have chose to go. It could be relevant again if #100423 lands so removing it may be a bit over eager.

r? `@RalfJung`
2022-12-21 23:20:04 +00:00
bjorn3
8b47801208 Don't ICE on C-cmse-nonsecure-call either 2022-12-16 15:45:07 +00:00
bjorn3
ee05e4d5ab Don't ICE on unimplemented call convs 2022-12-16 15:41:52 +00:00
bjorn3
dffa6acf73 Fix crash after simd type validation error
Fixes part of #1319
2022-12-16 14:50:43 +00:00
bjorn3
1c724ee6d0 Re-enable some rustc tests 2022-12-16 13:29:26 +00:00
bjorn3
ab0e2aaed2 Revert "Don't PrintOnPanic on fatal errors"
This reverts commit b5ac64b4cf.

It entirely breaks PrintOnPanic as ICE seems to be considered a fatal error too.
2022-12-16 13:00:36 +00:00
bjorn3
14ca1df478 Enable debug assertions on CI
Fixes #1314
2022-12-16 11:27:21 +00:00
bjorn3
91655428f9 Ensure Cranelift errors are reported deterministically
This may also have been the root cause of #1310.
2022-12-16 10:04:49 +00:00
bjorn3
ec92c3e5dc Fix ICE on incompatible declarations of entry symbol
Fixes #1313
2022-12-16 09:57:07 +00:00
bjorn3
b5ac64b4cf Don't PrintOnPanic on fatal errors 2022-12-16 09:44:28 +00:00
bjorn3
9ca82a9a3d Fix ICE on unsized locals
Fixes #1312
2022-12-16 09:41:36 +00:00