Skip to content

Commit 0648317

Browse files
committed
do not return compiler root unnecessarily from resolve_compilers
1 parent 989df1b commit 0648317

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/_build_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def resolve_compilers(
4343
if oneapi or (
4444
c_compiler is None and cxx_compiler is None and compiler_root is None
4545
):
46-
return "icx", ("icpx" if is_linux else "icx"), None
46+
return "icx", ("icpx" if is_linux else "icx")
4747

4848
if not compiler_root or not os.path.exists(compiler_root):
4949
raise RuntimeError(
@@ -66,7 +66,7 @@ def resolve_compilers(
6666
)
6767
if not os.path.exists(path):
6868
raise RuntimeError(f"{opt_name} value {name} not found")
69-
return c_compiler, cxx_compiler, compiler_root
69+
return c_compiler, cxx_compiler
7070

7171

7272
def make_cmake_args(

scripts/build_locally.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def main():
141141
args = parse_args()
142142
setup_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
143143

144-
c_compiler, cxx_compiler, compiler_root = resolve_compilers(
144+
c_compiler, cxx_compiler = resolve_compilers(
145145
args.oneapi, args.c_compiler, args.cxx_compiler, args.compiler_root
146146
)
147147

0 commit comments

Comments
 (0)