https://gcc.gnu.org/g:5cbfb3a799bcded1a06897400a09f0efadc1f9e8
commit r15-3375-g5cbfb3a799bcded1a06897400a09f0efadc1f9e8 Author: Tobias Burnus <tbur...@baylibre.com> Date: Mon Sep 2 10:29:36 2024 +0200 lto/lto.cc: Fix build with not HAVE_WORKING_FORK gcc/lto/ChangeLog: * lto.cc: Add missing HAVE_WORKING_FORK. Diff: --- gcc/lto/lto.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/lto/lto.cc b/gcc/lto/lto.cc index 58ff0c45f577..52dd436fd9a1 100644 --- a/gcc/lto/lto.cc +++ b/gcc/lto/lto.cc @@ -62,8 +62,10 @@ along with GCC; see the file COPYING3. If not see /* Number of parallel tasks to run. */ static int lto_parallelism; +#ifdef HAVE_WORKING_FORK /* Number of active WPA streaming processes. */ static int nruns = 0; +#endif /* GNU make's jobserver info. */ static jobserver_info *jinfo = NULL;