diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-12-05 03:18:53 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2024-12-05 03:18:53 +0000 |
| commit | a89f340efed5112eda108150ccc47f329aacc0e4 (patch) | |
| tree | c609da262c62a8efc783bc117c95c78711706ce2 /src | |
| parent | 01442e70a775556a62d7f3678b3c558400094861 (diff) | |
| download | rust-a89f340efed5112eda108150ccc47f329aacc0e4.tar.gz rust-a89f340efed5112eda108150ccc47f329aacc0e4.zip | |
Nested job objects are now supported in CI
Nested job objects aren't supported on Windows 7 but we've long since moved on from that.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/utils/job.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/bootstrap/src/utils/job.rs b/src/bootstrap/src/utils/job.rs index b8c97f3d223..bd2d86498c5 100644 --- a/src/bootstrap/src/utils/job.rs +++ b/src/bootstrap/src/utils/job.rs @@ -87,15 +87,7 @@ mod for_windows { ); assert!(r.is_ok(), "{}", io::Error::last_os_error()); - // Assign our process to this job object. Note that if this fails, one very - // likely reason is that we are ourselves already in a job object! This can - // happen on the build bots that we've got for Windows, or if just anyone - // else is instrumenting the build. In this case we just bail out - // immediately and assume that they take care of it. - // - // Also note that nested jobs (why this might fail) are supported in recent - // versions of Windows, but the version of Windows that our bots are running - // at least don't support nested job objects. + // Assign our process to this job object. let r = AssignProcessToJobObject(job, GetCurrentProcess()); if r.is_err() { CloseHandle(job).ok(); |
