diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2021-03-25 21:32:43 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-26 19:01:20 -0400 |
commit | 5741caeb0454c1bee9ca865ce6c3dfdd980ecf3e (patch) | |
tree | e9e88003f94102663aa887d40a33311c7127e26c | |
parent | ef03fa6ffdbda7649c621789dd9f657229f0b01f (diff) | |
download | haskell-5741caeb0454c1bee9ca865ce6c3dfdd980ecf3e.tar.gz |
Only update config.sub when it already exists (#19574)
-rwxr-xr-x | boot | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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_) |