Run configure using bash script

This commit is contained in:
Matthieu Gautier 2024-04-22 16:42:58 +02:00
parent 4718001a52
commit 0085c0b7db
3 changed files with 7 additions and 2 deletions

View File

@ -166,7 +166,7 @@ class BuildEnv:
@property
def configure_wrapper(self):
try:
yield self.configInfo.configure_wrapper
yield from self.configInfo.configure_wrapper
except AttributeError:
pass

View File

@ -25,6 +25,11 @@ class NativeConfigInfo(ConfigInfo):
return f"{platform.machine()}-apple-darwin"
return sysconfig.get_platform()
@property
def configure_wrapper(self):
if neutralEnv("distname") == "Windows":
yield "C:\\Program Files\\Git\\bin\\bash.exe"
class NativeDyn(NativeConfigInfo):
name = "native_dyn"

View File

@ -68,7 +68,7 @@ class WasmConfigInfo(ConfigInfo):
@property
def configure_wrapper(self):
return "emconfigure"
yield "emconfigure"
@property
def make_wrapper(self):