aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorgrischka <grischka>2012-03-05 20:15:56 +0100
committergrischka <grischka>2012-03-05 20:15:56 +0100
commita35b3059bb0aaaa5965022ad317aaba27e22f148 (patch)
tree17df79be55c72aafe2d1856a20fc1c367c9e20e4 /tccrun.c
parenta0db7162af0f694c25b278984ac66a46fa099000 (diff)
downloadtinycc-a35b3059bb0aaaa5965022ad317aaba27e22f148.tar.gz
tinycc-a35b3059bb0aaaa5965022ad317aaba27e22f148.tar.bz2
tcc.h: define TCC_IS_NATIVE
- disable tccrun feature for non-native (cross-) compilers - define uplong for target adress size - fix using -Wl,-Ttext=... for Win64 (tccpe: ADDR3264 imagebase)
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tccrun.c b/tccrun.c
index de0ef89..41081cc 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -20,6 +20,9 @@
#include "tcc.h"
+/* only native compiler supports -run */
+#ifdef TCC_IS_NATIVE
+
#ifdef CONFIG_TCC_BACKTRACE
ST_DATA int rt_num_callers = 6;
ST_DATA const char **rt_bound_error_msg;
@@ -217,6 +220,8 @@ static void set_pages_executable(void *ptr, unsigned long length)
}
/* ------------------------------------------------------------- */
+#endif /* TCC_IS_NATIVE */
+
#ifdef CONFIG_TCC_BACKTRACE
PUB_FUNC void tcc_set_num_callers(int n)