Skip to content
  • Ömer Sinan Ağacan's avatar
    validate: enable -DDEBUG in stage 1 by default · 66fa0ed7
    Ömer Sinan Ağacan authored
    Since the whole point of validation is to test the compiler, assertions
    should be enabled at least for some part of the build. Previously
    assertions were only enabled (1) in stage 2 compiler (2) when "slow"
    setting is used. With this patch we enable assertions in stage 1
    compiler in all settings, to test them on (1) the compiler itself (2)
    the libraries, even with the "fast" setting.
    
    This will make "fast" setting slower, but the difference should be quite
    modest - I didn't realize a significant difference in validation times.
    
    Reviewers: bgamari, austin, thomie
    
    Reviewed By: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1890
    66fa0ed7