Also run make using gitbash

This commit is contained in:
Matthieu Gautier 2024-04-30 17:30:27 +02:00
parent 6eb97b2e35
commit 66869be5e7
1 changed files with 9 additions and 1 deletions

View File

@ -22,6 +22,10 @@ class WinBashConfigInfo(ConfigInfo):
def configure_wrapper(self): def configure_wrapper(self):
yield "C:\\Program Files\\Git\\bin\\bash.exe" yield "C:\\Program Files\\Git\\bin\\bash.exe"
@property
def make_wrapper(self):
yield "C:\\Program Files\\Git\\bin\\bash.exe"
@property @property
def binaries(self): def binaries(self):
binaries = { binaries = {
@ -31,7 +35,11 @@ class WinBashConfigInfo(ConfigInfo):
} }
return binaries return binaries
def set_compiler(self, env):
for k, v in self.binaries.items():
env[k] = v
def set_comp_flags(self, env): def set_comp_flags(self, env):
super().set_comp_flags(env) super().set_comp_flags(env)
env["PATH"] += "C:\\Program Files\\Git\\bin" env["PATH"] += ["C:\\Program Files\\Git\\bin"]
env["CXXFLAGS"] = "-EHsc -MD " + env["CXXFLAGS"] env["CXXFLAGS"] = "-EHsc -MD " + env["CXXFLAGS"]