Added cross compilation to CMake build system.

Brings it more into line with make based system. I've tested on 32- and 64-bit
Windows, but not yet Linux.
This commit is contained in:
James Lyon
2013-04-25 01:08:18 +01:00
parent 5c35ba66c5
commit e7a7efed11
6 changed files with 264 additions and 113 deletions

View File

@ -607,13 +607,9 @@ unsigned long long __fixunsxfdi (long double a1)
#if defined(__x86_64__) && !defined(_WIN64)
/* helper functions for stdarg.h */
#include <stdlib.h>
#ifndef __TINYC__
/* gives "incompatible types for redefinition of __va_arg" below */
#include <stdio.h>
#endif
/* Avoid including stdlib.h because it is not easily available when
cross compiling */
extern void *malloc(unsigned long long);
enum __va_arg_type {
__va_gen_reg, __va_float_reg, __va_stack