rust/src
bors 5233edcf1c Auto merge of #82216 - kulikjak:fix-solaris-target, r=nagisa,Mark-Simulacrum
make x86_64-pc-solaris the default target for x86-64 Solaris

This change makes `x86_64-pc-solaris` the default compilation target for x86-64 Solaris/Illumos (based on [this exchange](https://github.com/rust-lang/rust/issues/68214#issuecomment-748042054) with `@varkor).`

I tried several ways of doing this (leveraging the alias support added with #61761 and improved/fixed with #80073) and found out that cross-compilation to the new one is by far the simplest way of doing this. It can be achieved by adding the following arguments: `--build x86_64-sun-solaris --host x86_64-pc-solaris --target x86_64-pc-solaris` and enabling the cross compilation with `PKG_CONFIG_ALLOW_CROSS=1` environment variable.

I also removed alias support altogether - `x86_64-pc-solaris` and `x86_64-sun-solaris` are now two separate targets. The problem with aliases is that even if rust internally knows that two are the same, other tools building with rust don't know that, resulting in build issues like the one with firefox mentioned [here](https://github.com/rust-lang/rust/issues/68214#issuecomment-746144229). I think that once the dust settles and `x86_64-pc-solaris` becomes the default, `x86_64-sun-solaris` can be removed.

If you agree with the above, I have two subsequent questions:
1. Is there a preferred way to display deprecation warnings when `x86_64-sun-solaris` is passed into the compiler as an argument? I am not sure whether target deprecation was done before.
2. Where would be the best way to document this change for those using rust on Solaris? Without the cross-compilation arguments (used once to build a new version), the build won't work. Should I add it into [RELEASES.md](https://github.com/rust-lang/rust/blob/master/RELEASES.md)?

Thanks!
2021-03-01 14:34:19 +00:00
..
bootstrap Change default Solaris x86 target to x86_64-pc-solaris 2021-03-01 15:05:31 +01:00
build_helper
ci Update Docker to use the correct target 2021-03-01 15:06:32 +01:00
doc Update supported platforms doc 2021-03-01 15:06:32 +01:00
etc fix typo in pre-commit.sh 2021-02-24 18:37:13 -05:00
librustdoc Auto merge of #81349 - jyn514:blanket-impls-cleanup, r=lcnr 2021-02-28 19:19:09 +00:00
llvm-project@96ae8953e4 Revert LLVM D81803 because it broke Windows 7 2021-02-27 11:09:00 -08:00
rustdoc-json-types Rollup merge of #81891 - CraftSpider:fn-header, r=jyn514 2021-02-14 16:54:45 +01:00
test Auto merge of #78360 - tmiasko:storage-markers, r=wesleywiser,oli-obk 2021-03-01 11:53:24 +00:00
tools Auto merge of #78360 - tmiasko:storage-markers, r=wesleywiser,oli-obk 2021-03-01 11:53:24 +00:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt Update the bootstrap compiler 2021-02-20 17:19:30 -05:00
version

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.