Enable pretty-printer only on host and debug

This commit is contained in:
Ilmir Usmanov
2014-10-14 15:05:48 +04:00
parent 053cbc769f
commit 64e286f766
5 changed files with 28 additions and 0 deletions
+5
View File
@@ -172,7 +172,12 @@ main (int argc __unused,
}
else if (!__strcmp ("--show-opcodes", argv[i]))
{
#ifdef JERRY_ENABLE_PP
show_opcodes = true;
#else
__printf ("Ignoring --show-opcodes since target is not x86_64 or debug is not enabled.\n");
show_opcodes = false;
#endif
}
else
{