We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04abc2a commit 8ceacaaCopy full SHA for 8ceacaa
scripts/_build_helper.py
@@ -85,6 +85,7 @@ def resolve_compilers(
85
if cxx_compiler is None:
86
cxx_compiler = "icpx" if is_linux else "icx"
87
88
+ compiler_paths = []
89
for name, opt_name in (
90
(c_compiler, "--c-compiler"),
91
(cxx_compiler, "--cxx-compiler"),
@@ -93,9 +94,14 @@ def resolve_compilers(
93
94
path = name
95
else:
96
path = os.path.join(compiler_root, name)
97
+
98
if not os.path.exists(path):
- raise RuntimeError(f"{opt_name} value {name} not found")
- return c_compiler, cxx_compiler
99
+ raise RuntimeError(
100
+ f"{opt_name} value {name} not found and {path} not exist"
101
+ )
102
103
+ compiler_paths.append(path)
104
+ return tuple(compiler_paths)
105
106
107
def resolve_onemath(
0 commit comments