Skip to content

Commit fd4e498

Browse files
committed
fix build release script
1 parent 8b10582 commit fd4e498

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_release.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,13 @@ def run_cmd_get_stdout(cmd):
9898
cc = f"gcc-{version}"
9999
break
100100

101-
if not "gcc" in run_cmd_get_stdout(f"{cxx} --version").lower() or not "gcc" in run_cmd_get_stdout(f"{cc} --version"):
101+
if not "g++" in run_cmd_get_stdout(f"{cxx} --version").lower() or not "gcc" in run_cmd_get_stdout(f"{cc} --version"):
102102
print(f"The selected C++ compiler ({cxx}) or C compiler ({cc}) is not GNU g++/gcc.\n"
103103
"If you are using macOS, you may install it with Homebrew (https://brew.sh/)")
104+
sys.exit(1)
104105

105106
run_cmd(f"{make_command} clean")
106-
run_cmd(f"{make_command} CXX=$(cxx) CC=$(cc) PLATFORM={platform} STATIC_LINK=true -j")
107+
run_cmd(f"{make_command} CXX={cxx} CC={cc} PLATFORM={platform} STATIC_LINK=true -j")
107108

108109
run_cmd("mkdir -p bin/example")
109110

0 commit comments

Comments
 (0)