Skip to content

Commit 60c9749

Browse files
cosminbascatimfel
authored andcommitted
ginstall: make ninja build env platform specific
1 parent d7e620b commit 60c9749

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,12 @@ def meson(**kwargs):
484484
@pip_package()
485485
def ninja(**kwargs):
486486
install_with_pip("scikit-build==0.16.6")
487-
ninja_build_env = {
488-
'CC': 'gcc',
489-
'CXX': 'g++',
490-
}
487+
ninja_build_env = {}
488+
if sys.platform.startswith('linux'):
489+
ninja_build_env = {
490+
'CC': 'gcc',
491+
'CXX': 'g++',
492+
}
491493
install_from_pypi("ninja==1.11.1", env=ninja_build_env, **kwargs)
492494

493495
@pip_package()

0 commit comments

Comments
 (0)