Skip to content

Commit

Permalink
Try a simpler call to cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Feb 24, 2024
1 parent 9d86d2d commit 38f11f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def compile(source, target, blazingio):
def compile(source, target, blazingio):
subprocess.run([f"cl", source, "/I.", f"/DBLAZINGIO=\"{blazingio}\"", f"/Fe{target}", "/std:c++17", "/O2", "/EHsc", "/nologo", "/W2", "/WX"], check=True)
if "GITHUB_RUN_ID" in os.environ:
os.environ["CPP"] = "msys2 -c \"exec cpp $*\" cpp"
os.environ["CPP"] = "msys2 -c cpp cpp"
else:
os.environ["CPP"] = "C:\\msys64\\usr\\bin\\bash.exe -l -c \"exec cpp $*\" cpp"
os.environ["CPP"] = "C:\\msys64\\usr\\bin\\bash.exe -l -c cpp cpp"
os.environ["MSYSTEM"] = "UCRT64"
else:
arch = platform.machine()
Expand Down

0 comments on commit 38f11f1

Please sign in to comment.