summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2021-03-25 21:32:43 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-26 19:01:20 -0400
commit5741caeb0454c1bee9ca865ce6c3dfdd980ecf3e (patch)
treee9e88003f94102663aa887d40a33311c7127e26c
parentef03fa6ffdbda7649c621789dd9f657229f0b01f (diff)
downloadhaskell-5741caeb0454c1bee9ca865ce6c3dfdd980ecf3e.tar.gz
Only update config.sub when it already exists (#19574)
-rwxr-xr-xboot3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot b/boot
index ec37c169ad..a8cf8c49c0 100755
--- a/boot
+++ b/boot
@@ -138,7 +138,8 @@ def autoreconf():
for dir_ in ['.'] + glob.glob('libraries/*/'):
if os.path.isfile(os.path.join(dir_, 'configure.ac')):
print("Booting %s" % dir_)
- if dir_ != '.':
+ # Update config.sub in submodules
+ if dir_ != '.' and os.path.isfile(os.path.join(dir_, 'config.sub')):
shutil.copyfile('config.sub', os.path.join(dir_, 'config.sub'))
processes[dir_] = subprocess.Popen(['sh', '-c', reconf_cmd], cwd=dir_)