File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,15 @@ def run(
11
11
compiler_root = None ,
12
12
cmake_executable = None ,
13
13
):
14
- IS_LIN = False
14
+ build_system = None
15
15
16
16
if "linux" in sys .platform :
17
- IS_LIN = True
17
+ build_system = "Unix Makefiles"
18
18
elif sys .platform in ["win32" , "cygwin" ]:
19
- pass
19
+ build_system = "Ninja"
20
20
else :
21
21
assert False , sys .platform + " not supported"
22
22
23
- if not IS_LIN :
24
- raise RuntimeError (
25
- "This scripts only supports coverage collection on Linux"
26
- )
27
23
setup_dir = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
28
24
cmake_args = [
29
25
sys .executable ,
@@ -37,7 +33,7 @@ def run(
37
33
cmake_args += [
38
34
"--" ,
39
35
"-G" ,
40
- "Unix Makefiles" ,
36
+ build_system ,
41
37
"-DCMAKE_BUILD_TYPE=Debug" ,
42
38
"-DCMAKE_C_COMPILER:PATH=" + c_compiler ,
43
39
"-DCMAKE_CXX_COMPILER:PATH=" + cxx_compiler ,
@@ -86,7 +82,7 @@ def run(
86
82
87
83
if args .oneapi :
88
84
args .c_compiler = "icx"
89
- args .cxx_compiler = "icpx"
85
+ args .cxx_compiler = "icpx" if "linux" in sys . platform else "icx"
90
86
args .compiler_root = None
91
87
else :
92
88
args_to_validate = [
You can’t perform that action at this time.
0 commit comments