Skip to content

Commit 4c81303

Browse files
committed
Fix: Zig apps producing Page fault in Debug mode
Debug build fails because it produces an binary > 64k. May be something can be done about this future.
1 parent 572ea17 commit 4c81303

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cmake/x86/userflags.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ set(MOS_ZIG_BUILD_OPTIONS
2525
--prominent-compile-errors
2626
)
2727

28-
if (MOS_BUILD_MODE STREQUAL "DEBUG")
29-
list(APPEND MOS_ZIG_BUILD_OPTIONS -Doptimize=Debug)
30-
else()
31-
list(APPEND MOS_ZIG_BUILD_OPTIONS -Doptimize=ReleaseSafe)
32-
endif()
28+
# Debug build fails because it produces an binary > 64k
29+
list(APPEND MOS_ZIG_BUILD_OPTIONS -Doptimize=ReleaseSafe)
3330

3431
# ----------------------------------------------------
3532
# Zig Compiler Definitions

0 commit comments

Comments
 (0)