File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -848,10 +848,10 @@ sub run_cmake
848
848
my $thread_opts = ' ' ;
849
849
my $gpu_aot_target_opts = ' ' ;
850
850
851
+ $c_cmplr .= " $c_flags " ;
852
+ $cpp_cmplr .= " $cpp_flags " ;
851
853
($c_cmplr , $c_cmd_opts ) = remove_opt($c_cmplr );
852
854
($cpp_cmplr , $cpp_cmd_opts ) = remove_opt($cpp_cmplr );
853
- $c_cmd_opts .= $c_flags ;
854
- $cpp_cmd_opts .= $cpp_flags ;
855
855
856
856
if ($cmplr_platform {OSFamily } eq " Windows" ) {
857
857
# Windows
@@ -1041,6 +1041,8 @@ sub remove_opt
1041
1041
$cmd_opts =~ s / -fsycl-unnamed-lambda$|-fsycl-unnamed-lambda\s {1,}// ;
1042
1042
# Remove "/EHsc" since it's not supported by clang/clang++
1043
1043
$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 +// ;
1044
1046
} else {
1045
1047
$cmplr = $cmplr_info ;
1046
1048
}
You can’t perform that action at this time.
0 commit comments