From 26ee4babcfa056f8619f6b80acbf8c77d6f4e57b Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 13 Jul 2023 19:42:35 +0200 Subject: [PATCH] Native_fopen for Win32 had incorrect arguments. --- lib/std/io/os/file_libc.c3 | 2 +- src/compiler/target.c | 9 +-------- src/version.h | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/lib/std/io/os/file_libc.c3 b/lib/std/io/os/file_libc.c3 index 2a9abbfe8..263744ac2 100644 --- a/lib/std/io/os/file_libc.c3 +++ b/lib/std/io/os/file_libc.c3 @@ -10,7 +10,7 @@ fn void*! native_fopen(String filename, String mode) @inline @pool() { $if env::WIN32: - void* file = libc::_wfopen(filename.to_temp_wstring(), filename.to_temp_wstring())!; + void* file = libc::_wfopen(filename.to_temp_wstring(), mode.to_temp_wstring())!; $else void* file = libc::fopen(filename.zstr_tcopy(), mode.zstr_tcopy()); $endif diff --git a/src/compiler/target.c b/src/compiler/target.c index 70d0b03b1..7b35ec22a 100644 --- a/src/compiler/target.c +++ b/src/compiler/target.c @@ -1767,14 +1767,7 @@ void target_setup(BuildTarget *target) if (target->debug_info == DEBUG_INFO_NOT_SET) { - if (platform_target.os == OS_TYPE_WIN32) - { - target->debug_info = DEBUG_INFO_NONE; - } - else - { - target->debug_info = DEBUG_INFO_FULL; - } + target->debug_info = DEBUG_INFO_FULL; } platform_target.float_abi = false; diff --git a/src/version.h b/src/version.h index 86d2f501b..6397ca479 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define COMPILER_VERSION "0.4.564" \ No newline at end of file +#define COMPILER_VERSION "0.4.565" \ No newline at end of file