Merge pull request #16 from bruvzg/ci_set

Setup CI for MSVC, MinGW/GCC and MinGW/LLVM
This commit is contained in:
Rémi Verschelde
2024-07-18 10:48:44 +02:00
committed by GitHub
2 changed files with 184 additions and 1 deletions

View File

@@ -34,10 +34,15 @@ def generate(env):
elif env["arch"] == "x86_32":
env["TARGET_ARCH"] = "x86"
env["MSVC_SETUP_RUN"] = False # Need to set this to re-run the tool
env["MSVS_VERSION"] = None
env["MSVC_VERSION"] = None
env["is_msvc"] = True
# MSVC, linker, and archiver.
msvc.generate(env)
env.Tool("msvc")
env.Tool("mslib")
env.Tool("mslink")
@@ -94,7 +99,7 @@ def generate(env):
else:
env["CXX"] = prefix + "-w64-mingw32-g++"
env["CC"] = prefix + "-w64-mingw32-gcc"
env["AR"] = prefix + "-w64-mingw32-ar"
env["AR"] = prefix + "-w64-mingw32-gcc-ar"
env["RANLIB"] = prefix + "-w64-mingw32-ranlib"
env["LINK"] = prefix + "-w64-mingw32-g++"