Rollup merge of #120831 - Nikokrock:pr/disappearing_startup_objects, r=onur-ozkan

Startup objects disappearing from sysroot

When launching tests with --keep-stage option, startup objects such as rsbegin.o an rsend.o may disappear from the corresponding stageN compiler.

Fix issue #120784
This commit is contained in:
Matthias Krüger 2024-02-09 14:41:52 +01:00 committed by GitHub
commit 4a46914bac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,6 +173,8 @@ impl Step for Std {
{
builder.info("WARNING: Using a potentially old libstd. This may not behave well.");
builder.ensure(StartupObjects { compiler, target });
self.copy_extra_objects(builder, &compiler, target);
builder.ensure(StdLink::from_std(self, compiler));