From: David Schleef Date: Sat, 24 Sep 2011 23:01:02 +0000 (-0700) Subject: Fix error messages when compilation is disabled X-Git-Tag: orc-0.4.15~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6135d91c1537523a04fd5f54396f79a6f33940d;p=platform%2Fupstream%2Forc.git Fix error messages when compilation is disabled --- 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; }