<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/bootstrap/native.rs, branch 1.60.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.60.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.60.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-03-14T15:49:31+00:00</updated>
<entry>
<title>bootstrap: correct reading of flags for llvm</title>
<updated>2022-03-14T15:49:31+00:00</updated>
<author>
<name>Jon Gjengset</name>
<email>jongje@amazon.com</email>
</author>
<published>2022-03-01T00:40:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9823bc6952176e04d764e099d7a881483084313c'/>
<id>urn:sha1:9823bc6952176e04d764e099d7a881483084313c</id>
<content type='text'>
First, this reverts the `CFLAGS`/`CXXFLAGS` of #93918. Those flags are
already read by `cc` and populated into `Build` earlier on in the
process. We shouldn't be overriding that based on `CFLAGS`, since `cc`
also respects overrides like `CFLAGS_{TARGET}` and `HOST_CFLAGS`, which
we want to take into account.

Second, this adds the same capability to specify target-specific
versions of `LDFLAGS` as we have through `cc` for the `C*` flags:
https://github.com/alexcrichton/cc-rs#external-configuration-via-environment-variables

Note that this also necessitated an update to compiletest to treat
CXXFLAGS separately from CFLAGS.
</content>
</entry>
<entry>
<title>Statically compile libstdc++ everywhere if asked</title>
<updated>2022-03-14T15:47:57+00:00</updated>
<author>
<name>Jon Gjengset</name>
<email>jongje@amazon.com</email>
</author>
<published>2022-03-08T00:59:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=099acb0c44d5a087fd1580fba699e51bfeacf3f8'/>
<id>urn:sha1:099acb0c44d5a087fd1580fba699e51bfeacf3f8</id>
<content type='text'>
PR #93918 made it so that `-static-libstdc++` was only set in one place,
and was only set during linking, but accidentally also made it so that
it is no longer passed when building LLD or sanitizers, only when
building LLVM itself. This moves the logic for setting
`-static-libstdc++` in the linker flags back to `configure_cmake` so
that it takes effect for all CMake invocations in `native.rs`.

As a side-effect, this also causes libstdc++ to be statically compiled
into sanitizers and LLD if `llvm-tools-enabled` is set but
`llvm-static-stdcpp` is not, even though previously it was only linked
statically if `llvm-static-stdcpp` was set explicitly. But that seems
more like the expected behavior anyway.
</content>
</entry>
<entry>
<title>bootstrap: -static-libstdc++ is a linker flag</title>
<updated>2022-02-12T00:09:57+00:00</updated>
<author>
<name>Jon Gjengset</name>
<email>jongje@amazon.com</email>
</author>
<published>2022-02-11T20:03:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=36692741a2edef04a92021dcde05d9fa124f25e6'/>
<id>urn:sha1:36692741a2edef04a92021dcde05d9fa124f25e6</id>
<content type='text'>
Fixes #70468. Closes #89983.
</content>
</entry>
<entry>
<title>bootstrap: make LLVM build respect *FLAGS envvars</title>
<updated>2022-02-12T00:09:38+00:00</updated>
<author>
<name>Jon Gjengset</name>
<email>jongje@amazon.com</email>
</author>
<published>2022-02-11T19:44:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=07dae5a97b64100f5abd511f1e2d5a6263a54006'/>
<id>urn:sha1:07dae5a97b64100f5abd511f1e2d5a6263a54006</id>
<content type='text'>
This tidies up the logic in `src/bootstrap/native.rs` such that:

 - `CMAKE_*_LINKER_FLAGS` is not overridden if we add to it twice.
 - `CMAKE_*_FLAGS` also include the standard `*FLAGS` environment
   variables, which CMake respects when we _don't_ set `CMAKE_*_FLAGS`.
 - `llvm.ldflags` from `config.toml` appends to the ldflags Rust's
   bootstrap logic adds, rather than replacing them.

Fixes #93880.
</content>
</entry>
<entry>
<title>Add llvm.build-config option</title>
<updated>2022-02-09T22:41:23+00:00</updated>
<author>
<name>Tyler Mandry</name>
<email>tmandry@gmail.com</email>
</author>
<published>2022-02-08T01:56:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=69cd826a85fe046ea102f3144f66b5b4b1b8accf'/>
<id>urn:sha1:69cd826a85fe046ea102f3144f66b5b4b1b8accf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Explain why libatomic is not needed on FreeBSD riscv64</title>
<updated>2021-12-03T17:49:42+00:00</updated>
<author>
<name>Tobias Kortkamp</name>
<email>t@tobik.me</email>
</author>
<published>2021-12-03T17:48:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e24045e5873a19690bda6a07a63912adfc375b13'/>
<id>urn:sha1:e24045e5873a19690bda6a07a63912adfc375b13</id>
<content type='text'>
From Jessica Clarke (jrtc27@)
</content>
</entry>
<entry>
<title>Add riscv64gc-unknown-freebsd</title>
<updated>2021-11-27T06:24:18+00:00</updated>
<author>
<name>Tobias Kortkamp</name>
<email>t@tobik.me</email>
</author>
<published>2021-11-27T06:23:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=47474f10558a473258510b0e5dea13d607a5d34c'/>
<id>urn:sha1:47474f10558a473258510b0e5dea13d607a5d34c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update the minimum external LLVM to 12</title>
<updated>2021-10-22T17:50:07+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2021-10-22T17:50:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9f545b9a952f193dbe15730bcbe47784b6e7cde'/>
<id>urn:sha1:e9f545b9a952f193dbe15730bcbe47784b6e7cde</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update the minimum external LLVM to 11</title>
<updated>2021-10-22T16:22:18+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2021-10-19T17:24:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=65150af1b4841feeb8b81f1ada60de1191912590'/>
<id>urn:sha1:65150af1b4841feeb8b81f1ada60de1191912590</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: add the option to enable LLVM tests</title>
<updated>2021-10-19T00:19:13+00:00</updated>
<author>
<name>Augie Fackler</name>
<email>augie@google.com</email>
</author>
<published>2021-10-18T21:59:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f2a234e63c6f5db70a363507bf940dbc51d4efda'/>
<id>urn:sha1:f2a234e63c6f5db70a363507bf940dbc51d4efda</id>
<content type='text'>
I'm working on some LLVM patches in concert with a Rust patch, and it's
helping me quite a bit to have this as an option. It doesn't seem that
hard, so I figured I'd formalize it in x.py and send it upstream.
</content>
</entry>
</feed>
