Skip to content

Commit a3c583e

Browse files
FIX: Don't force D4P compiler to ICX when building with DPC (#2440)
* don't forcibly set compiler to ICX for D4P, don't link to intel libs * correct argument * remove unneeded flag
1 parent dfcb644 commit a3c583e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/build_backend.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ def custom_build_cmake_clib(
107107
# in order to propagate both potential user-passed arguments and flags, such as:
108108
# CXX="ccache icpx"
109109
# CXX="icpx -O0"
110+
env_build = dict(os.environ)
110111
if cxx:
111-
os.environ["CXX"] = cxx
112+
env_build["CXX"] = cxx
112113
cmake_args = [
113114
"cmake",
114115
cmake_generator,
@@ -151,6 +152,6 @@ def custom_build_cmake_clib(
151152
abs_build_temp_path,
152153
]
153154

154-
subprocess.check_call(cmake_args)
155-
subprocess.check_call(make_args)
156-
subprocess.check_call(make_install_args)
155+
subprocess.check_call(cmake_args, env=env_build)
156+
subprocess.check_call(make_args, env=env_build)
157+
subprocess.check_call(make_install_args, env=env_build)

0 commit comments

Comments
 (0)