File 1198-erts-Fix-cc.sh-to-respect-O0.patch of Package erlang
From 11c62cd370b1f296a3bf79d3665112c75056b33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org> Date: Tue, 28 Jan 2025 10:08:06 +0100 Subject: [PATCH 2/4] erts: Fix cc.sh to respect -O0 --- erts/etc/win32/wsl_tools/vc/cc.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erts/etc/win32/wsl_tools/vc/cc.sh b/erts/etc/win32/wsl_tools/vc/cc.sh index 493c6b6403..2d3d524f80 100755 --- a/erts/etc/win32/wsl_tools/vc/cc.sh +++ b/erts/etc/win32/wsl_tools/vc/cc.sh @@ -123,6 +123,8 @@ while test -n "$1" ; do MD=-MD; fi OPTIMIZED_BUILD=true;; + -O0) + ;; -O*) # Optimization hardcoded OPTIMIZE_FLAGS="-Ox -Z7"; -- 2.43.0