From 25e72b6b316b5f7f764ded376fb4f4e57aaca5ed Mon Sep 17 00:00:00 2001 From: Matt Blagden Date: Tue, 13 Aug 2024 17:57:56 -0700 Subject: [PATCH] Fix linux build (#1473) Summary: Pull Request resolved: https://github.com/facebook/hermes/pull/1473 Differential Revision: D61224976 --- .github/workflows/build.yml | 2 +- external/llvh/utils/lit/lit/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7275795fd0b..05ecffea4e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,7 +42,7 @@ jobs: name: android-hermes path: output linux: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Install dependencies run: |- diff --git a/external/llvh/utils/lit/lit/main.py b/external/llvh/utils/lit/lit/main.py index 49aaf638a22..ab5a7fff6d4 100755 --- a/external/llvh/utils/lit/lit/main.py +++ b/external/llvh/utils/lit/lit/main.py @@ -335,7 +335,7 @@ def main_with_tmp(builtinParameters): parser.error('No inputs specified') if opts.numThreads is None: - opts.numThreads = lit.util.detectCPUs() + opts.numThreads = 1 elif opts.numThreads <= 0: parser.error("Option '--threads' or '-j' requires positive integer")