]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto/lto.cc: Fix build with not HAVE_WORKING_FORK
authorTobias Burnus <tburnus@baylibre.com>
Mon, 2 Sep 2024 08:29:36 +0000 (10:29 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Mon, 2 Sep 2024 08:29:36 +0000 (10:29 +0200)
gcc/lto/ChangeLog:

* lto.cc: Add missing HAVE_WORKING_FORK.

gcc/lto/lto.cc

index 58ff0c45f577fc9bcbe877aea98ac6dd1ef79086..52dd436fd9a14475e2bdbb4959b5d3cbf36e19cb 100644 (file)
@@ -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;