mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
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
This commit is contained in:
committed by
Andreas Rumpf
parent
b53327c92a
commit
303ef57b15
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user