From 303ef57b1592eaf2131e15143e79187c01096dca Mon Sep 17 00:00:00 2001 From: Neelesh Chandola Date: Sun, 16 Dec 2018 13:38:31 +0530 Subject: [PATCH] Fix clang not producing debug info in cpp mode (#9976) * Fix clang on windows to produce debug info * Fix clang not producing debug info in cpp mode --- config/nim.cfg | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/nim.cfg b/config/nim.cfg index 38683b304..e6175784e 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -220,10 +220,20 @@ llvm_gcc.options.size = "-Os" # Configuration for the LLVM CLang compiler: clang.options.debug = "-g" +clang.cpp.options.debug = "-g" clang.options.always = "-w" clang.options.speed = "-O3" clang.options.size = "-Os" +@if windows: + clang.options.debug = "-g -gcodeview" + clang.cpp.options.debug = "-g -gcodeview" + @if not release: + clang.options.linker = "-g" + clang.cpp.options.linker = "-g" + @end +@end + # Configuration for the Visual C/C++ compiler: # VCCEXE is a tool that invokes the Visual Studio Developer Command Prompt # before calling the compiler.