summary refs log tree commit diff stats
path: root/tinyc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2010-08-28 23:09:29 +0200
committerAraq <rumpf_a@web.de>2010-08-28 23:09:29 +0200
commit030d46f21804d8dd82edf7d5d2875e8f034dd86a (patch)
treef87c1deaf36d8e6a56bebee2110934dd532e8a2e /tinyc
parentc96f4e042ec776889019ef2ea635828785edd6e4 (diff)
downloadNim-030d46f21804d8dd82edf7d5d2875e8f034dd86a.tar.gz
attempt to get tiny C for i386 to work
Diffstat (limited to 'tinyc')
-rwxr-xr-xtinyc/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tinyc/config.h b/tinyc/config.h
index ceb34f784..edaf335bb 100755
--- a/tinyc/config.h
+++ b/tinyc/config.h
@@ -6,6 +6,11 @@
 #  define TCC_TARGET_PE   1
 #  define TCC_TARGET_I386

 #  define CONFIG_TCCDIR "."

+#elif defined(__i386__)
+#  define TCC_TARGET_I386
+#  define CONFIG_TCCDIR "/usr/local/lib/tcc"
+#  define GCC_MAJOR 4
+#  define HOST_I386 1
 #else
 #  define TCC_TARGET_X86_64
 #  define CONFIG_TCCDIR "/usr/local/lib/tcc"