Skip to content

Commit 1d4f5c3

Browse files
authored
Merge pull request intel#1328 from jiezzhang/CMPLRTST-18426
Fix CMPLRTST-18426: remove /F when running with opt_use_cpu_O0
2 parents a789658 + 306697c commit 1d4f5c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm_test_suite_sycl.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,10 +848,10 @@ sub run_cmake
848848
my $thread_opts = '';
849849
my $gpu_aot_target_opts = '';
850850

851+
$c_cmplr .= " $c_flags";
852+
$cpp_cmplr .= " $cpp_flags";
851853
($c_cmplr, $c_cmd_opts) = remove_opt($c_cmplr);
852854
($cpp_cmplr, $cpp_cmd_opts) = remove_opt($cpp_cmplr);
853-
$c_cmd_opts .= $c_flags;
854-
$cpp_cmd_opts .= $cpp_flags;
855855

856856
if ($cmplr_platform{OSFamily} eq "Windows") {
857857
# Windows
@@ -1041,6 +1041,8 @@ sub remove_opt
10411041
$cmd_opts =~ s/-fsycl-unnamed-lambda$|-fsycl-unnamed-lambda\s{1,}//;
10421042
# Remove "/EHsc" since it's not supported by clang/clang++
10431043
$cmd_opts =~ s/\/EHsc$|\/EHsc\s{1,}//;
1044+
# Remove "/F 2097152" when running opt_use_cpu_O0 since it's not supported by clang/clang++
1045+
$cmd_opts =~ s/\/F\s*\d+//;
10441046
} else {
10451047
$cmplr = $cmplr_info;
10461048
}

0 commit comments

Comments
 (0)