Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changes between Version 7 and Version 8 of Hacking

Show
Ignore:
Author:
mwarning (IP: 178.202.98.159)
Timestamp:
01/28/11 16:22:13 (13 years ago)
Comment:

add debug help

Legend:

Unmodified
Added
Removed
Modified
  • Hacking

    v7 v8  
    3030== Debugging help == 
    3131 
     32 * To enable assertions in LDC, you need to have LLVM compiled with --enable-assertions 
     33 * add -DDEBUG to the CPP_FLAGS in "ccmake ." to enable DEBUG sections in LDC 
     34 * Set CMAKE_BUILD_TYPE to Debug in cmake to get a debug build of LDC. (works?) 
    3235 * Use ->toChars() on instances of DMDFE classes and ->dump() on LLVM values and types. 
    33  * Set CMAKE_BUILD_TYPE to Debug in cmake to get a debug build of ldc. 
Copyright © 2008, LDC Development Team.