Andrew Mulbrook wrote:
I'm guessing I broke the linux cross-compiler for Win64? If I enable cross-compilers on Win64 host, tccrun breaks for me now. Adding the TCC_TARGET_X86_64 and TCC_TARGET_PE requirement to the win64_add_function_table allows compilation to finish. Would the proper fix then gaurding on all 3 of TCC_TARGET_X86, TCC_TARGET_PE, and _WIN64?

For a cross-compiler there are no proper fixes for tccrun.  Properly,
everything related to tccrun should be omitted unless it is a native
compiler.

There is some nativeness detection intelligence in tccpe.c:

  #if defined _WIN32 && (defined _WIN64) == (defined TCC_TARGET_X86_64)
  #define TCC_IS_NATIVE
  #endif

--- grischka


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to