rust/src
Matthias Krüger 96bb98c9c0
Rollup merge of #98434 - dpaoliello:staticcrt, r=jyn514
Ensure that `static_crt` is set in the bootstrapper whenever using `cc-rs` to get a compiler command line.

When attempting to build rustc with LLVM on Windows, I noticed that the CRT flag provided to the C and C++ Compilers was inconsistent:

```
"-DCMAKE_C_FLAGS=-nologo -MT -Brepro" "-DCMAKE_CXX_FLAGS=-nologo -MD -Brepro"
```

Since the bootstrapper also sets the various `LLVM_USE_CRT` variables, this resulted in cl.exe reporting a bunch of warnings:

```
cl : Command line warning D9025 : overriding '/MD' with '/MT'
```

The root cause for this is that `cc_detect::find` was creating a `cc::Build` twice, but didn't set `static_crt` the second time.

It's possible that this what is also causing #81381
2022-06-29 20:34:58 +02:00
..
bootstrap Rollup merge of #98434 - dpaoliello:staticcrt, r=jyn514 2022-06-29 20:34:58 +02:00
ci Rollup merge of #98422 - GuillaumeGomez:browser-ui-test-update, r=Dylan-DPC 2022-06-23 14:39:19 -07:00
doc Rollup merge of #98401 - ehuss:extern-tracking, r=Dylan-DPC 2022-06-25 15:14:12 +02:00
etc Rollup merge of #95446 - notseanray:master, r=Mark-Simulacrum 2022-06-22 15:16:08 +09:00
librustdoc Auto merge of #98558 - nnethercote:smallvec-1.8.1, r=lqd 2022-06-29 09:11:29 +00:00
llvm-project@d1ddc34c4b Update LLVM submodule 2022-06-25 09:36:03 +02:00
rustdoc-json-types rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate 2022-05-04 21:03:01 +02:00
test Rollup merge of #98625 - RalfJung:retag, r=oli-obk 2022-06-29 17:59:37 +05:30
tools Auto merge of #98558 - nnethercote:smallvec-1.8.1, r=lqd 2022-06-29 09:11:29 +00:00
README.md
stage0.json change stage0.json to reduce the chance of merge conflicts 2022-06-09 19:43:11 +02:00
version bump version to 1.64.0 2022-06-24 17:27:24 +02:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.