From d6135d91c1537523a04fd5f54396f79a6f33940d Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 24 Sep 2011 16:01:02 -0700 Subject: [PATCH] Fix error messages when compilation is disabled --- orc/orccompiler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orc/orccompiler.c b/orc/orccompiler.c index e5cf4f1..dc09916 100644 --- a/orc/orccompiler.c +++ b/orc/orccompiler.c @@ -310,7 +310,7 @@ orc_program_compile_full (OrcProgram *program, OrcTarget *target, } if (program->backup_func && _orc_compiler_flag_backup) { - orc_compiler_error (compiler, "Compilation disabled"); + orc_compiler_error (compiler, "Compilation disabled, using backup"); compiler->result = ORC_COMPILE_RESULT_UNKNOWN_COMPILE; goto error; } @@ -318,6 +318,7 @@ orc_program_compile_full (OrcProgram *program, OrcTarget *target, if (_orc_compiler_flag_emulate || target == NULL) { program->code_exec = (void *)orc_executor_emulate; program->orccode->exec = (void *)orc_executor_emulate; + orc_compiler_error (compiler, "Compilation disabled, using emulation"); compiler->result = ORC_COMPILE_RESULT_UNKNOWN_COMPILE; goto error; } -- 2.7.4