summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-16 13:38:31 +0530
committerAndreas Rumpf <rumpf_a@web.de>2018-12-16 09:08:31 +0100
commit303ef57b1592eaf2131e15143e79187c01096dca (patch)
treebd8db476e41afc2f571d6ff3242974963d395c02
parentb53327c92a1c685ab71917cabedbf441f7f5fd2d (diff)
downloadNim-303ef57b1592eaf2131e15143e79187c01096dca.tar.gz
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
-rw-r--r--config/nim.cfg10
1 files changed, 10 insertions, 0 deletions
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.