File tree 1 file changed +9
-3
lines changed
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(
61
61
base_name.find (" goto-bcc" )!=std::string::npos)
62
62
return " bcc" ;
63
63
64
+ if (base_name==" goto-clang" )
65
+ return " clang" ;
66
+
64
67
std::string::size_type pos=base_name.find (" goto-gcc" );
65
68
66
69
if (pos==std::string::npos ||
@@ -564,10 +567,13 @@ int gcc_modet::doit()
564
567
config.ansi_c .mode =configt::ansi_ct::flavourt::VISUAL_STUDIO;
565
568
debug () << " Enabling Visual Studio syntax" << eom;
566
569
}
567
- else if (config.this_operating_system ()==" macos" )
568
- config.ansi_c .mode = configt::ansi_ct::flavourt::CLANG;
569
570
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
+ }
571
577
572
578
if (compiler.mode ==compilet::ASSEMBLE_ONLY)
573
579
compiler.object_file_extension =" s" ;
You can’t perform that action at this time.
0 commit comments