Skip to content

Commit 90e4522

Browse files
Added logic to select compiler based on platform
1 parent 3a0f216 commit 90e4522

File tree

1 file changed

+3
-2
lines changed
  • behavior_tests/src/cmake_dpct_helper_add_mkl_to_target

1 file changed

+3
-2
lines changed

behavior_tests/src/cmake_dpct_helper_add_mkl_to_target/do_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ def migrate_test():
3030
ret = change_dir("build")
3131
if not ret:
3232
print("Error to go to build folder:", test_config.command_output)
33-
34-
ret = call_subprocess("cmake -G \"Unix Makefiles\" -DCMAKE_CXX_COMPILER=icpx ../")
33+
34+
CXX_COMP = "icx" if platform.system() else "icpx"
35+
ret = call_subprocess("cmake -G \"Unix Makefiles\" -DCMAKE_CXX_COMPILER=" + CXX_COMP + " ../")
3536
if not ret:
3637
print("Error to run cmake configure:", test_config.command_output)
3738

0 commit comments

Comments
 (0)