We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9d9e2a commit 1f19e23Copy full SHA for 1f19e23
src/goto-cc/gcc_mode.cpp
@@ -564,10 +564,13 @@ int gcc_modet::doit()
564
config.ansi_c.mode=configt::ansi_ct::flavourt::VISUAL_STUDIO;
565
debug() << "Enabling Visual Studio syntax" << eom;
566
}
567
- else if(config.this_operating_system()=="macos")
568
- config.ansi_c.mode = configt::ansi_ct::flavourt::CLANG;
569
else
570
- config.ansi_c.mode=configt::ansi_ct::flavourt::GCC;
+ {
+ if(gcc_version.flavor == gcc_versiont::flavort::CLANG)
+ config.ansi_c.mode = configt::ansi_ct::flavourt::CLANG;
571
+ else
572
+ config.ansi_c.mode = configt::ansi_ct::flavourt::GCC;
573
+ }
574
575
if(compiler.mode==compilet::ASSEMBLE_ONLY)
576
compiler.object_file_extension="s";
0 commit comments