From fed9f01b2d97a4569c453ea51158c328df5f0015 Mon Sep 17 00:00:00 2001 From: unknown-v <52547845+unknown-v@users.noreply.github.com> Date: Wed, 28 Aug 2019 10:56:07 +0200 Subject: [PATCH] use -rdynamic only if host os is not windows --- compiler/cc.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cc.v b/compiler/cc.v index c0f89a17f4..bd70e54fde 100644 --- a/compiler/cc.v +++ b/compiler/cc.v @@ -40,7 +40,7 @@ fn (v mut V) cc() { a << '-g' } - if v.pref.is_debug { + if v.pref.is_debug && os.user_os() != 'windows'{ a << ' -rdynamic ' // needed for nicer symbolic backtraces }