Skip to content
Snippets Groups Projects
Commit 9f210d5f authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

feat : now uses Ninja as default compiler

parent 9a205fe7
No related branches found
No related tags found
2 merge requests!212Version 0.3.0,!116feat/release_pip
Pipeline #50142 waiting for manual action
...@@ -21,6 +21,7 @@ test = [ ...@@ -21,6 +21,7 @@ test = [
[build-system] [build-system]
requires = [ requires = [
"ninja>=1.10.1",
"setuptools>=64", "setuptools>=64",
"setuptools_scm[toml]==7.1.0", "setuptools_scm[toml]==7.1.0",
"cmake>=3.27.9", "cmake>=3.27.9",
......
...@@ -51,15 +51,11 @@ class CMakeBuild(build_ext): ...@@ -51,15 +51,11 @@ class CMakeBuild(build_ext):
if "AIDGE_INSTALL" not in os.environ if "AIDGE_INSTALL" not in os.environ
else os.environ["AIDGE_INSTALL"] else os.environ["AIDGE_INSTALL"]
) )
cmake_type_opts = (
["-G", os.environ.get("AIDGE_BUILD_GEN")]
if "AIDGE_BUILD_GEN" in os.environ
else []
)
self.spawn( self.spawn(
[ [
"cmake", "cmake",
*cmake_type_opts, "-GNinja", # using ninja as build system to build faster and with the same compiler as on windows
str(cwd), str(cwd),
"-DTEST=OFF", "-DTEST=OFF",
f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}", f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment