From 31070c1530b70a4d3631fdaa8f52f81171071f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Quei=C3=9Fner?= Date: Thu, 10 Nov 2022 00:20:51 +0100 Subject: [PATCH] Makes executable files never stripped, we want that sweet debug info. Makes empty.zig less empty, so the compiler finds the file. (#91) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Felix "xq" Queißner --- src/core/empty.zig | 1 + src/main.zig | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/empty.zig b/src/core/empty.zig index e69de29..8337712 100644 --- a/src/core/empty.zig +++ b/src/core/empty.zig @@ -0,0 +1 @@ +// diff --git a/src/main.zig b/src/main.zig index c4fa6e5..7781f25 100644 --- a/src/main.zig +++ b/src/main.zig @@ -182,6 +182,7 @@ pub fn addEmbeddedExecutable( }; exe.inner.use_stage1 = true; + exe.inner.strip = false; // we always want debug symbols, stripping brings us no benefit on embedded // might not be true for all machines (Pi Pico), but // for the HAL it's true (it doesn't know the concept of threading)