File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1717import setuptools .command .install as orig_install
1818import setuptools .command .develop as orig_develop
1919import subprocess
20- import shutil
20+ import shlex
2121from setuptools import Extension , find_packages , setup
2222from Cython .Build import cythonize
2323
@@ -103,13 +103,12 @@ def _get_cmdclass():
103103
104104def spirv_compile ():
105105 if IS_LIN :
106- compiler = os . path . join (
107- os .environ .get ("ONEAPI_ROOT" ), " compiler/latest/linux" , "bin/clang"
108- )
106+ compiler = "compiler/latest/linux/bin/clang"
107+ compiler = os .path . join ( os . environ .get ("ONEAPI_ROOT" ), compiler )
108+ compiler = shlex . quote ( compiler )
109109 if IS_WIN :
110- compiler = os .path .join (
111- os .environ .get ("ONEAPI_ROOT" ), "compiler/latest/windows" , "bin/clang.exe"
112- )
110+ compiler = "compiler\\ latest\\ windows\\ bin\\ clang.exe"
111+ compiler = os .path .join (os .environ .get ("ONEAPI_ROOT" ), compiler )
113112 clang_args = [
114113 compiler ,
115114 "-flto" ,
You can’t perform that action at this time.
0 commit comments