[v2] configure: Only create serdep.tmp if needed
Checks
Commit Message
There's no reason to create this file if none of the serial configure
options are passed.
v2: Use test instead of [ to avoid running afoul of autoconf quoting.
ChangeLog:
* configure: Regenerate.
* configure.ac: Only create serdep.tmp if needed
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
configure | 2 ++
configure.ac | 2 ++
2 files changed, 4 insertions(+)
Comments
On 1/16/23 18:12, Peter Foley wrote:
> There's no reason to create this file if none of the serial configure
> options are passed.
>
> v2: Use test instead of [ to avoid running afoul of autoconf quoting.
>
> ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Only create serdep.tmp if needed
Note I think this should be deferred to gcc-14 given that gcc-13 is in
regression bugfixes only stage right now.
jeff
On 1/16/23 18:12, Peter Foley wrote:
> There's no reason to create this file if none of the serial configure
> options are passed.
>
> v2: Use test instead of [ to avoid running afoul of autoconf quoting.
>
> ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Only create serdep.tmp if needed
Thanks. I bootstrapped and regression tested x86 without issues and
pushed this patch to the trunk.
jeff
@@ -9918,7 +9918,9 @@ esac
# These force 'configure's to be done one at a time, to avoid problems
# with contention over a shared config.cache.
rm -f serdep.tmp
+if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
echo '# serdep.tmp' > serdep.tmp
+fi
olditem=
test "x${enable_serial_build_configure}" = xyes &&
for item in ${build_configdirs} ; do
@@ -3071,7 +3071,9 @@ esac
# These force 'configure's to be done one at a time, to avoid problems
# with contention over a shared config.cache.
rm -f serdep.tmp
+if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
echo '# serdep.tmp' > serdep.tmp
+fi
olditem=
test "x${enable_serial_build_configure}" = xyes &&
for item in ${build_configdirs} ; do