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:
Nicolas Roche 2024-02-09 09:07:49 +01:00
parent 98aa3624be
commit 575e0aa592

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));