+ {
+ try
+ {
+ compiler.compile(compile_mode);
+ string diag = compiler.get_diagnostics();
+ if(!diag.empty())
+ IO::print("Diagnostic messages from compiler:\n%s\n", diag);
+ }
+ catch(const GL::SL::invalid_shader_source &exc)
+ {
+ if(!dump_ast)
+ throw;
+
+ IO::print("Compilation resulted in errors:\n%s\n", exc.what());
+ combined = false;
+ stage = GL::SL::Stage::SHARED;
+ }
+ }