aboutsummaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tccpe.c b/tccpe.c
index 6631473..7a96034 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -1770,7 +1770,12 @@ static void pe_add_runtime_ex(TCCState *s1, struct pe_info *pe)
if (0 == s1->nostdlib) {
static const char *libs[] = {
- "tcc1", "msvcrt", "kernel32", "", "user32", "gdi32", NULL
+#ifdef TCC_TARGET_X86_64
+ "tcc1-win64",
+#else
+ "tcc1-win32",
+#endif
+ "msvcrt", "kernel32", "", "user32", "gdi32", NULL
};
const char **pp, *p;
for (pp = libs; 0 != (p = *pp); ++pp) {