9 sout <<
"Error compiling clexulator. To fix: \n";
10 sout <<
" - Check compiler error messages.\n";
11 sout <<
" - Check compiler options with 'casm settings -l'\n";
12 sout <<
" - Update compiler options with 'casm settings "
13 "--set-compile-options '...options...'\n";
14 sout <<
" - Make sure the casm headers can be found by including "
15 "'-I/path/to/casm'\n";
20 std::string filename_base, std::string compile_options,
21 std::string so_options, std::string compile_msg) {
24 log() << compile_msg << std::endl;
26 std::shared_ptr<RuntimeLibrary> result = std::make_shared<RuntimeLibrary>(
27 filename_base, compile_options, so_options);
28 log() <<
"compile time: " <<
log().
lap_time() <<
" (s)\n" << std::endl;
38 }
catch (std::exception &e) {
void compiling(const std::string &what)
static const int standard
void print(std::ostream &sout) const
std::shared_ptr< RuntimeLibrary > log_make_shared_runtime_lib(std::string filename_base, std::string compile_options, std::string so_options, std::string compile_msg)
Make shared_ptr<RuntimeLibrary>, logging progress and errors.
void print_runtime_lib_options_help(std::ostream &sout)