File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ static std::string compiler_name(
6161 base_name.find (" goto-bcc" )!=std::string::npos)
6262 return " bcc" ;
6363
64+ if (base_name==" goto-clang" )
65+ return " clang" ;
66+
6467 std::string::size_type pos=base_name.find (" goto-gcc" );
6568
6669 if (pos==std::string::npos ||
@@ -564,10 +567,13 @@ int gcc_modet::doit()
564567 config.ansi_c .mode =configt::ansi_ct::flavourt::VISUAL_STUDIO;
565568 debug () << " Enabling Visual Studio syntax" << eom;
566569 }
567- else if (config.this_operating_system ()==" macos" )
568- config.ansi_c .mode = configt::ansi_ct::flavourt::CLANG;
569570 else
570- config.ansi_c .mode =configt::ansi_ct::flavourt::GCC;
571+ {
572+ if (gcc_version.flavor == gcc_versiont::flavort::CLANG)
573+ config.ansi_c .mode = configt::ansi_ct::flavourt::CLANG;
574+ else
575+ config.ansi_c .mode = configt::ansi_ct::flavourt::GCC;
576+ }
571577
572578 if (compiler.mode ==compilet::ASSEMBLE_ONLY)
573579 compiler.object_file_extension =" s" ;
You can’t perform that action at this time.
0 commit comments