Fix error messages when compilation is disabled
authorDavid Schleef <ds@schleef.org>
Sat, 24 Sep 2011 23:01:02 +0000 (16:01 -0700)
committerDavid Schleef <ds@schleef.org>
Sat, 24 Sep 2011 23:01:02 +0000 (16:01 -0700)
orc/orccompiler.c

index e5cf4f1..dc09916 100644 (file)
@@ -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;
   }