mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
tcc_error_noabort(): always use this unless compiling
This avoids 'exit(1)' with errors outside of compilation (nasty in particular with libtcc usage) As a sideeffect multiple errors can be seen for linker errors (such as undefined symbols, relocation errors, ...)
This commit is contained in:
@@ -35,6 +35,9 @@
|
||||
#error Platform not supported
|
||||
#endif
|
||||
|
||||
/* XXX: this file uses tcc_error() to the effect of exit(1) */
|
||||
#undef _tcc_error
|
||||
|
||||
#define DEBUG_MACHO 0
|
||||
#define dprintf if (DEBUG_MACHO) printf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user