]> git.lizzy.rs Git - rust.git/log
rust.git
15 months agoForce the allocator to be looked up from the perspective of the rustc binary
bjorn3 [Mon, 6 Feb 2023 18:27:27 +0000 (19:27 +0100)]
Force the allocator to be looked up from the perspective of the rustc binary

Fixes #1303

15 months agoRustup to rustc 1.69.0-nightly (75a0be98f 2023-02-05)
bjorn3 [Mon, 6 Feb 2023 17:32:25 +0000 (18:32 +0100)]
Rustup to rustc 1.69.0-nightly (75a0be98f 2023-02-05)

15 months agoSync from rust 044a28a4091f2e1a5883f7fa990223f8b200a2cd
bjorn3 [Mon, 6 Feb 2023 17:03:15 +0000 (18:03 +0100)]
Sync from rust 044a28a4091f2e1a5883f7fa990223f8b200a2cd

15 months agoMerge pull request #1351 from bjorn3/global_asm_const
bjorn3 [Sun, 5 Feb 2023 19:41:49 +0000 (20:41 +0100)]
Merge pull request #1351 from bjorn3/global_asm_const

Implement const and sym operands for global asm

15 months agoImplement sym operands for global asm
bjorn3 [Sun, 5 Feb 2023 18:42:30 +0000 (18:42 +0000)]
Implement sym operands for global asm

15 months agoImplement const operands for global asm
bjorn3 [Sun, 5 Feb 2023 18:17:31 +0000 (18:17 +0000)]
Implement const operands for global asm

15 months agoMerge pull request #1350 from bjorn3/inline_asm_sym
bjorn3 [Sun, 5 Feb 2023 18:17:00 +0000 (19:17 +0100)]
Merge pull request #1350 from bjorn3/inline_asm_sym

Implement const and sym operands for inline asm

15 months agoFix linker error when inline asm sym operand is not exported from local CGU
bjorn3 [Sun, 5 Feb 2023 17:39:00 +0000 (17:39 +0000)]
Fix linker error when inline asm sym operand is not exported from local CGU

15 months agoAdd create_wrapper_function helper
bjorn3 [Sun, 5 Feb 2023 17:24:02 +0000 (17:24 +0000)]
Add create_wrapper_function helper

15 months agoSupport const and sym operands in inline asm
bjorn3 [Wed, 4 Jan 2023 17:19:52 +0000 (17:19 +0000)]
Support const and sym operands in inline asm

15 months agoMerge pull request #1347 from bjorn3/dist_no_debug_assertions
bjorn3 [Sun, 5 Feb 2023 14:47:23 +0000 (15:47 +0100)]
Merge pull request #1347 from bjorn3/dist_no_debug_assertions

Build CI dist artifacts without debug assertions

15 months agoBuild CI dist artifacts without debug assertions
bjorn3 [Sat, 4 Feb 2023 10:22:24 +0000 (10:22 +0000)]
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.

15 months agoUse packed debuginfo for the sysroot on macOS
bjorn3 [Fri, 3 Feb 2023 20:01:39 +0000 (20:01 +0000)]
Use packed debuginfo for the sysroot on macOS

This reduces the sysroot size

15 months agoFix assert_mem_uninitialized_valid in release mode
bjorn3 [Fri, 3 Feb 2023 19:59:05 +0000 (19:59 +0000)]
Fix assert_mem_uninitialized_valid in release mode

15 months agoMerge pull request #1346 from bjorn3/self_profile_cleanup
bjorn3 [Fri, 3 Feb 2023 19:48:22 +0000 (20:48 +0100)]
Merge pull request #1346 from bjorn3/self_profile_cleanup

Improve -Ztime-passes and -Zself-profile output

15 months agoRecord cranelift pass timings in self profile results
bjorn3 [Fri, 3 Feb 2023 18:35:09 +0000 (18:35 +0000)]
Record cranelift pass timings in self profile results

15 months agoUse generic_activity_with_arg in codegen_fn and compile_fn
bjorn3 [Fri, 3 Feb 2023 17:33:39 +0000 (17:33 +0000)]
Use generic_activity_with_arg in codegen_fn and compile_fn

15 months agoCleanup -Ztime-passes output
bjorn3 [Fri, 3 Feb 2023 17:16:09 +0000 (17:16 +0000)]
Cleanup -Ztime-passes output

15 months agoMove codegen_and_compile_fn to driver/jit.rs
bjorn3 [Fri, 3 Feb 2023 16:48:35 +0000 (16:48 +0000)]
Move codegen_and_compile_fn to driver/jit.rs

15 months agoFix transmute from vector to scalar pair again
bjorn3 [Wed, 1 Feb 2023 14:28:06 +0000 (15:28 +0100)]
Fix transmute from vector to scalar pair again

15 months agoFix hyperfine install on CI
bjorn3 [Wed, 1 Feb 2023 13:58:05 +0000 (13:58 +0000)]
Fix hyperfine install on CI

15 months agoDon't force many scalar pair values to the stack in write_cvalue_maybe_transmute
bjorn3 [Wed, 1 Feb 2023 13:55:28 +0000 (13:55 +0000)]
Don't force many scalar pair values to the stack in write_cvalue_maybe_transmute

Sometimes it is necessary for handling vector to scalar pair transmutes,
but if the types are the same there is no need for this.

This improves runtime performance on simple-raytracer by 12%.

16 months agoRun y.rs bench in CI
bjorn3 [Tue, 31 Jan 2023 17:49:08 +0000 (17:49 +0000)]
Run y.rs bench in CI

16 months agoFix y.rs bench
bjorn3 [Tue, 31 Jan 2023 17:44:29 +0000 (17:44 +0000)]
Fix y.rs bench

16 months agoFix rustc test suite
bjorn3 [Tue, 31 Jan 2023 17:39:19 +0000 (17:39 +0000)]
Fix rustc test suite

16 months agoAuto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk
bors [Sun, 29 Jan 2023 04:11:27 +0000 (04:11 +0000)]
Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk

Use stable metric for const eval limit instead of current terminator-based logic

This patch adds a `MirPass` that inserts a new MIR instruction `ConstEvalCounter` to any loops and function calls in the CFG. This instruction is used during Const Eval to count against the `const_eval_limit`, and emit the `StepLimitReached` error, replacing the current logic which uses Terminators only.

The new method of counting loops and function calls should be more stable across compiler versions (i.e., not cause crates that compiled successfully before, to no longer compile when changes to the MIR generation/optimization are made).

Also see: #103877

16 months agoDon't download abi-cafe and simple-raytracer in ./y.rs prepare
bjorn3 [Fri, 27 Jan 2023 18:44:19 +0000 (18:44 +0000)]
Don't download abi-cafe and simple-raytracer in ./y.rs prepare

Instead download them on the fly

16 months agoAuto merge of #107055 - kylematsuda:eb-fn-sig, r=lcnr
bors [Fri, 27 Jan 2023 15:02:44 +0000 (15:02 +0000)]
Auto merge of #107055 - kylematsuda:eb-fn-sig, r=lcnr

Switch to `EarlyBinder` for `fn_sig` query

Part of the work to finish #105779 (also see https://github.com/rust-lang/types-team/issues/78).

Several queries `X` have a `bound_X` variant that wraps the output in [`EarlyBinder`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/subst/struct.EarlyBinder.html). This adds `EarlyBinder` to the return type of the `fn_sig` query and removes `bound_fn_sig`.

r? `@lcnr`

16 months agoRustup to rustc 1.69.0-nightly (d7948c843 2023-01-26)
bjorn3 [Fri, 27 Jan 2023 11:43:49 +0000 (12:43 +0100)]
Rustup to rustc 1.69.0-nightly (d7948c843 2023-01-26)

16 months agoSync from rust 18890f05f6cea40fd25bb4bb9aa6f7372b69f641
bjorn3 [Fri, 27 Jan 2023 11:36:10 +0000 (12:36 +0100)]
Sync from rust 18890f05f6cea40fd25bb4bb9aa6f7372b69f641

16 months agoadd EarlyBinder::no_bound_vars
Kyle Matsuda [Thu, 19 Jan 2023 19:09:01 +0000 (12:09 -0700)]
add EarlyBinder::no_bound_vars

16 months agochange fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder...
Kyle Matsuda [Wed, 18 Jan 2023 23:52:47 +0000 (16:52 -0700)]
change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata

16 months agoreplace usages of fn_sig query with bound_fn_sig
Kyle Matsuda [Wed, 18 Jan 2023 22:43:20 +0000 (15:43 -0700)]
replace usages of fn_sig query with bound_fn_sig

16 months agoAuto merge of #107269 - bjorn3:sync_cg_clif-2023-01-24, r=bjorn3
bors [Fri, 27 Jan 2023 00:03:09 +0000 (00:03 +0000)]
Auto merge of #107269 - bjorn3:sync_cg_clif-2023-01-24, r=bjorn3

Sync rustc_codegen_cranelift

For cg_clif itself there have been a couple of bug fixes since the last sync, a Cranelift update and implemented all remaining simd platform intrinsics used by `std::simd`. (`std::arch` still misses a lot though) Most of the diff is from reworking of the cg_clif build system though.

r? `@ghost`

`@rustbot` label +A-codegen +A-cranelift +T-compiler

16 months agoAuto merge of #107314 - matthiaskrgr:rollup-j40lnlj, r=matthiaskrgr
bors [Thu, 26 Jan 2023 06:23:14 +0000 (06:23 +0000)]
Auto merge of #107314 - matthiaskrgr:rollup-j40lnlj, r=matthiaskrgr

Rollup of 11 pull requests

Successful merges:

 - #106407 (Improve proc macro attribute diagnostics)
 - #106960 (Teach parser to understand fake anonymous enum syntax)
 - #107085 (Custom MIR: Support binary and unary operations)
 - #107086 (Print PID holding bootstrap build lock on Linux)
 - #107175 (Fix escaping inference var ICE in `point_at_expr_source_of_inferred_type`)
 - #107204 (suggest qualifying bare associated constants)
 - #107248 (abi: add AddressSpace field to Primitive::Pointer )
 - #107272 (Implement ObjectSafe and WF in the new solver)
 - #107285 (Implement `Generator` and `Future` in the new solver)
 - #107286 (ICE in new solver if we see an inference variable)
 - #107313 (Add Style Team Triagebot config)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

16 months agoAuto merge of #105582 - saethlin:instcombine-assert-inhabited, r=cjgillot
bors [Thu, 26 Jan 2023 03:10:52 +0000 (03:10 +0000)]
Auto merge of #105582 - saethlin:instcombine-assert-inhabited, r=cjgillot

InstCombine away intrinsic validity assertions

This optimization (currently) fires 246 times on the standard library. It seems to fire hardly at all on the big crates in the benchmark suite. Interesting.

16 months agoFix CI
bjorn3 [Wed, 25 Jan 2023 14:56:22 +0000 (15:56 +0100)]
Fix CI

16 months agoVendor newer version of cranelift-native
bjorn3 [Wed, 25 Jan 2023 14:19:40 +0000 (15:19 +0100)]
Vendor newer version of cranelift-native

It fixes a bug that caused compilation on 32bit x86 to fail

16 months agoMerge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
bjorn3 [Tue, 24 Jan 2023 17:56:42 +0000 (18:56 +0100)]
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24

16 months agoThread a ParamEnv down to might_permit_raw_init
Ben Kimock [Sun, 22 Jan 2023 22:06:28 +0000 (17:06 -0500)]
Thread a ParamEnv down to might_permit_raw_init

16 months agoUpdate codegen cranelift for ConstEvalCounter
Bryan Garza [Thu, 29 Dec 2022 23:44:16 +0000 (23:44 +0000)]
Update codegen cranelift for ConstEvalCounter

16 months agoabi: add `AddressSpace` field to `Primitive::Pointer`
Erik Desjardins [Mon, 23 Jan 2023 04:03:58 +0000 (23:03 -0500)]
abi: add `AddressSpace` field to `Primitive::Pointer`

...and remove it from `PointeeInfo`, which isn't meant for this.

There are still various places (marked with FIXMEs) that assume all pointers
have the same size and alignment. Fixing this requires parsing non-default
address spaces in the data layout string, which will be done in a followup.

16 months agoUpdate to Cranelift 0.92
bjorn3 [Sat, 7 Jan 2023 17:06:13 +0000 (17:06 +0000)]
Update to Cranelift 0.92

16 months agoSeparate out abi-cafe runs into separate CI jobs
bjorn3 [Fri, 20 Jan 2023 17:49:59 +0000 (17:49 +0000)]
Separate out abi-cafe runs into separate CI jobs

This increases build parallelism

16 months agoFix clif ir writing for simd_gather
bjorn3 [Fri, 20 Jan 2023 17:40:53 +0000 (17:40 +0000)]
Fix clif ir writing for simd_gather

16 months agoUse panic_nounwind and panic_cannot_unwind where necessary
bjorn3 [Fri, 20 Jan 2023 17:27:39 +0000 (17:27 +0000)]
Use panic_nounwind and panic_cannot_unwind where necessary

These were either regular unwinding panics or aborts in the past but got
changed somewhat recently.

16 months agoFix rustc test suite
bjorn3 [Fri, 20 Jan 2023 12:08:45 +0000 (13:08 +0100)]
Fix rustc test suite

16 months agoUpdate patch
bjorn3 [Fri, 20 Jan 2023 11:49:27 +0000 (12:49 +0100)]
Update patch

16 months agoUpdate rustup.sh for the moved dir of the sysroot source
bjorn3 [Fri, 20 Jan 2023 11:41:27 +0000 (12:41 +0100)]
Update rustup.sh for the moved dir of the sysroot source

16 months agoRustup to rustc 1.68.0-nightly (4c83bd03a 2023-01-19)
bjorn3 [Fri, 20 Jan 2023 11:40:54 +0000 (12:40 +0100)]
Rustup to rustc 1.68.0-nightly (4c83bd03a 2023-01-19)

16 months agoSync from rust 56ee85274e5a3a4dda92f3bf73d1664c74ff9c15
bjorn3 [Fri, 20 Jan 2023 11:22:21 +0000 (12:22 +0100)]
Sync from rust 56ee85274e5a3a4dda92f3bf73d1664c74ff9c15

16 months agoFix a couple of TOCTOU occurences
bjorn3 [Thu, 19 Jan 2023 14:51:43 +0000 (14:51 +0000)]
Fix a couple of TOCTOU occurences

16 months agoAuto merge of #106810 - oli-obk:resolver_reverse_plumbing, r=petrochenkov
bors [Thu, 19 Jan 2023 05:23:40 +0000 (05:23 +0000)]
Auto merge of #106810 - oli-obk:resolver_reverse_plumbing, r=petrochenkov

Various cleanups around pre-TyCtxt queries and functions

part of #105462

based on https://github.com/rust-lang/rust/pull/106776 (everything starting at [0e2b39f](https://github.com/rust-lang/rust/pull/106810/commits/0e2b39fd1ffde51b50d45ccbe41de52b85136b8b) is new in this PR)

r? `@petrochenkov`

I think this should be most of the uncontroversial part of #105462.

16 months agoRemove double spaces after dots in comments
Maybe Waffle [Wed, 16 Nov 2022 20:34:16 +0000 (20:34 +0000)]
Remove double spaces after dots in comments

16 months agoMove compiler input and ouput paths into session
Oli Scherer [Wed, 7 Dec 2022 09:24:00 +0000 (09:24 +0000)]
Move compiler input and ouput paths into session

16 months agoOnly run abi-cafe on cg_clif's CI
bjorn3 [Mon, 16 Jan 2023 11:21:37 +0000 (11:21 +0000)]
Only run abi-cafe on cg_clif's CI

16 months agoMerge pull request #1341 from bjorn3/build_sysroot_cleanup
bjorn3 [Sun, 15 Jan 2023 19:36:09 +0000 (20:36 +0100)]
Merge pull request #1341 from bjorn3/build_sysroot_cleanup

Refactor sysroot building

16 months agoEliminate a couple of extra calls
bjorn3 [Sun, 15 Jan 2023 14:38:22 +0000 (14:38 +0000)]
Eliminate a couple of extra calls

This is an additional 17% improvement on ./y.rs compile --sysroot none

Benchmark 1: ./y_before.bin build --sysroot none
  Time (mean ± σ):      1.533 s ±  0.022 s    [User: 1.411 s, System: 0.471 s]
  Range (min … max):    1.517 s …  1.589 s    10 runs

Benchmark 2: ./y_after.bin build --sysroot none
  Time (mean ± σ):      1.311 s ±  0.020 s    [User: 1.232 s, System: 0.428 s]
  Range (min … max):    1.298 s …  1.366 s    10 runs

Summary
  './y_after.bin build --sysroot none' ran
    1.17 ± 0.02 times faster than './y_before.bin build --sysroot none'

16 months agoSignificantly speed up assembling of sysroots
bjorn3 [Sun, 15 Jan 2023 14:14:13 +0000 (14:14 +0000)]
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'

16 months agoSkip creating sysroot target dir if it will be empty
bjorn3 [Sat, 14 Jan 2023 18:45:47 +0000 (18:45 +0000)]
Skip creating sysroot target dir if it will be empty

16 months agoBuild rtstartup for none sysroot too
bjorn3 [Sat, 14 Jan 2023 18:32:19 +0000 (18:32 +0000)]
Build rtstartup for none sysroot too

Even mini_core needs it

16 months agoPort llvm sysroot building to SysrootTarget too and dedup some code
bjorn3 [Sat, 14 Jan 2023 18:25:43 +0000 (18:25 +0000)]
Port llvm sysroot building to SysrootTarget too and dedup some code

16 months agoMove rtstartup build to build_clif_sysroot_for_triple
bjorn3 [Sat, 14 Jan 2023 17:51:54 +0000 (17:51 +0000)]
Move rtstartup build to build_clif_sysroot_for_triple

Also pass build/rtstartup as sysroot when building the standard library

16 months agoIntroduce SysrootTarget
bjorn3 [Sat, 14 Jan 2023 17:40:16 +0000 (17:40 +0000)]
Introduce SysrootTarget

16 months agoBuild rtstartup for MinGW from scratch
bjorn3 [Sat, 14 Jan 2023 17:02:21 +0000 (17:02 +0000)]
Build rtstartup for MinGW from scratch

Rather than copying it from an existing sysroot

16 months agoMerge pull request #1340 from bjorn3/non_rustup_build
bjorn3 [Sat, 14 Jan 2023 15:45:25 +0000 (16:45 +0100)]
Merge pull request #1340 from bjorn3/non_rustup_build

Push up a lot of rustc and cargo references

16 months agoAvoid hard-coded rustc when building wrappers
bjorn3 [Sat, 14 Jan 2023 14:08:23 +0000 (14:08 +0000)]
Avoid hard-coded rustc when building wrappers

16 months agoDon't hard-code rustc path in get_rustc_version and get_default_sysroot
bjorn3 [Sat, 14 Jan 2023 13:08:55 +0000 (13:08 +0000)]
Don't hard-code rustc path in get_rustc_version and get_default_sysroot

16 months agoReturn Compiler from build_sysroot
bjorn3 [Sat, 14 Jan 2023 13:04:40 +0000 (13:04 +0000)]
Return Compiler from build_sysroot

16 months agoRename Compiler variables for clarity
bjorn3 [Sat, 14 Jan 2023 12:53:33 +0000 (12:53 +0000)]
Rename Compiler variables for clarity

16 months agoMinor changes to the TestRunner::new signature
bjorn3 [Sat, 14 Jan 2023 12:44:39 +0000 (12:44 +0000)]
Minor changes to the TestRunner::new signature

16 months agoSet RUSTC and RUSTDOC env vars to invalid values to catch forgetting to set them
bjorn3 [Sat, 14 Jan 2023 12:41:07 +0000 (12:41 +0000)]
Set RUSTC and RUSTDOC env vars to invalid values to catch forgetting to set them

16 months agoUse fs::remove_dir_all instead of cargo clean
bjorn3 [Sat, 14 Jan 2023 12:36:56 +0000 (12:36 +0000)]
Use fs::remove_dir_all instead of cargo clean

16 months agoMinor consistency improvement
bjorn3 [Sat, 14 Jan 2023 12:14:19 +0000 (12:14 +0000)]
Minor consistency improvement

16 months agoRemove Test nightly Cranelift workflow
bjorn3 [Sat, 14 Jan 2023 14:17:43 +0000 (14:17 +0000)]
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.

16 months agoUpdate FreeBSD to 13.1
bjorn3 [Fri, 13 Jan 2023 18:16:47 +0000 (18:16 +0000)]
Update FreeBSD to 13.1

This fixes the certificate error

16 months agoMerge pull request #1339 from bjorn3/better_compiler_management
bjorn3 [Fri, 13 Jan 2023 18:01:01 +0000 (19:01 +0100)]
Merge pull request #1339 from bjorn3/better_compiler_management

Many build system improvements

16 months agoImprove readme and build system help message
bjorn3 [Fri, 13 Jan 2023 16:34:43 +0000 (16:34 +0000)]
Improve readme and build system help message

16 months agoEnable VSCode formatOnSave
bjorn3 [Fri, 13 Jan 2023 15:59:43 +0000 (15:59 +0000)]
Enable VSCode formatOnSave

16 months agoRustfmt
bjorn3 [Fri, 13 Jan 2023 15:58:39 +0000 (15:58 +0000)]
Rustfmt

16 months agoSet panic=abort for the build system
bjorn3 [Fri, 13 Jan 2023 15:55:17 +0000 (15:55 +0000)]
Set panic=abort for the build system

This saves about 60ms of build time

16 months agoPass --frozen to cargo to ensure ./y.rs prepare fetches all deps
bjorn3 [Fri, 13 Jan 2023 15:44:33 +0000 (15:44 +0000)]
Pass --frozen to cargo to ensure ./y.rs prepare fetches all deps

16 months agoFetch all cargo dependencies in ./y.rs prepare
bjorn3 [Fri, 13 Jan 2023 15:40:22 +0000 (15:40 +0000)]
Fetch all cargo dependencies in ./y.rs prepare

16 months agoDon't use the diff command in regex test
bjorn3 [Fri, 13 Jan 2023 15:14:04 +0000 (15:14 +0000)]
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.

16 months agoSet core.autocrlf=false in the build system instead of CI config
bjorn3 [Fri, 13 Jan 2023 14:41:07 +0000 (14:41 +0000)]
Set core.autocrlf=false in the build system instead of CI config

16 months agoAdd git_command helper
bjorn3 [Fri, 13 Jan 2023 14:39:12 +0000 (14:39 +0000)]
Add git_command helper

16 months agoAdd fixme
bjorn3 [Fri, 13 Jan 2023 14:33:14 +0000 (14:33 +0000)]
Add fixme

16 months agoIntroduce helpers for common test case commands
bjorn3 [Fri, 13 Jan 2023 14:19:54 +0000 (14:19 +0000)]
Introduce helpers for common test case commands

16 months agoDon't require git user to be configured for testing rust
bjorn3 [Fri, 13 Jan 2023 13:51:51 +0000 (13:51 +0000)]
Don't require git user to be configured for testing rust

16 months agoUse sparse cargo registry
bjorn3 [Fri, 13 Jan 2023 13:44:40 +0000 (13:44 +0000)]
Use sparse cargo registry

16 months agoRemove a lot of redundant rustc arguments for tests
bjorn3 [Fri, 13 Jan 2023 12:52:29 +0000 (12:52 +0000)]
Remove a lot of redundant rustc arguments for tests

16 months agoShare cross-compilation code between building and testing
bjorn3 [Fri, 13 Jan 2023 12:32:20 +0000 (12:32 +0000)]
Share cross-compilation code between building and testing

16 months agoPass around Compiler instead of target triples
bjorn3 [Fri, 13 Jan 2023 12:16:11 +0000 (12:16 +0000)]
Pass around Compiler instead of target triples

16 months agoDisable CG_CLIF_DISPLAY_CG_TIME by default
bjorn3 [Fri, 13 Jan 2023 11:42:02 +0000 (11:42 +0000)]
Disable CG_CLIF_DISPLAY_CG_TIME by default

It is a lot of noise without much benefit

16 months agoMove LLVM simple-raytracer build to ./y.rs bench
bjorn3 [Fri, 13 Jan 2023 11:41:40 +0000 (11:41 +0000)]
Move LLVM simple-raytracer build to ./y.rs bench

cc #1290

16 months agoRustfmt
bjorn3 [Wed, 11 Jan 2023 15:23:15 +0000 (15:23 +0000)]
Rustfmt

16 months agoRetry downloads on network failure
bjorn3 [Wed, 11 Jan 2023 14:14:14 +0000 (14:14 +0000)]
Retry downloads on network failure

Fixes #1280

16 months agoDon't install hyperfine in y.rs prepare
bjorn3 [Wed, 11 Jan 2023 13:59:14 +0000 (13:59 +0000)]
Don't install hyperfine in y.rs prepare

Missed in #1338
Part of #1290

16 months agoChange `src/test` to `tests` in source files, fix tidy and tests
Albert Larsan [Thu, 5 Jan 2023 08:45:44 +0000 (09:45 +0100)]
Change `src/test` to `tests` in source files, fix tidy and tests

16 months agoMerge pull request #1338 from bjorn3/build_system_rework5
bjorn3 [Thu, 5 Jan 2023 18:57:10 +0000 (19:57 +0100)]
Merge pull request #1338 from bjorn3/build_system_rework5

Avoid clobbering build_system/ and ~/.cargo/bin