Skip to content

Commit 238d68a

Browse files
committed
Clean up build script
1 parent 780bb6b commit 238d68a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
# Detect platform and choose CMake generator
1818
system = platform.system()
1919
if system == "Windows":
20-
cmake_generator = ["-G", "Ninja", "-D", "CMAKE_C_COMPILER=cl", "-D", "CMAKE_CXX_COMPILER=cl"]
20+
cmake_compiler = "-DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl"
2121
else:
22-
cmake_generator = ["-G", "Ninja"]
22+
cmake_compiler = ""
2323

2424
# Load config.json
2525
with open("config.json") as f:
@@ -52,7 +52,8 @@
5252

5353
cmake_configure = [
5454
"cmake",
55-
*cmake_generator,
55+
"-GNinja",
56+
cmake_compiler,
5657
f"-B{build_dir}",
5758
f"-DCUSTOM_PLUGIN_NAME={name}",
5859
f"-DCUSTOM_PLUGIN_PATH={zip_path}",

0 commit comments

Comments
 (0)