From 24a70882d0ff0642c0b2c033bc6d6b03820eb0aa Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Mon, 23 Mar 2020 16:07:03 +0100 Subject: [PATCH] appveyor: use parallel make (except for Base 3.14) --- appveyor/do.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/appveyor/do.py b/appveyor/do.py index e655c40..72a85b3 100644 --- a/appveyor/do.py +++ b/appveyor/do.py @@ -345,6 +345,12 @@ def prepare(*args): make = os.path.join(toolsdir, 'make') + makeargs = ['-j2', '-Otarget'] + # no parallel make for Base 3.14 + with open(os.path.join(places[setup['BASE_VARNAME']], 'configure', 'CONFIG_BASE_VERSION')) as myfile: + if 'BASE_3_14=YES' in myfile.read(): + makeargs = [] + perlver = '5.30.0.1' if os.environ['CC'] == 'vs2019': print('Installing Strawberry Perl {0}'.format(perlver)) @@ -381,7 +387,7 @@ def prepare(*args): for mod in modlist(): place = places[setup[mod+"_VARNAME"]] print('Building '+place) - sp.check_call(make, shell=True, cwd=place) + sp.check_call([make] + makeargs, shell=True, cwd=place) def build(*args): print('{0}Building the module{1}'.format(ANSI_YELLOW, ANSI_RESET))