File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,18 @@ def do_custom_build(self, env):
597
597
"--with-png=no" , "--with-harfbuzz=no" , "--enable-static" ,
598
598
"--disable-shared" ],
599
599
env = env , cwd = src_path )
600
- subprocess .check_call (["make" ], env = env , cwd = src_path )
600
+ if 'GNUMAKE' in env :
601
+ make = env ['GNUMAKE' ]
602
+ elif 'MAKE' in env :
603
+ make = env ['MAKE' ]
604
+ else :
605
+ output = subprocess .check_output (['make' , '-v' ],
606
+ stderr = subprocess .DEVNULL )
607
+ if b'GNU' not in output and b'makepp' not in output :
608
+ make = 'gmake'
609
+ else :
610
+ make = 'make'
611
+ subprocess .check_call ([make ], env = env , cwd = src_path )
601
612
else : # compilation on windows
602
613
shutil .rmtree (src_path / "objs" , ignore_errors = True )
603
614
msbuild_platform = (
You can’t perform that action at this time.
0 commit comments