[lld][COFF][LTO] Don't disable verifier in assert builds
We should catch more issues this way. This previously the behavior and was dropped in cde5e5b600b06. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D134839
This commit is contained in:
parent
6c8d8d1045
commit
1079f1c6ea
@ -76,7 +76,11 @@ static lto::Config createConfig() {
|
||||
c.RelocModel = Reloc::Static;
|
||||
else
|
||||
c.RelocModel = Reloc::PIC_;
|
||||
#ifndef NDEBUG
|
||||
c.DisableVerify = false;
|
||||
#else
|
||||
c.DisableVerify = true;
|
||||
#endif
|
||||
c.DiagHandler = diagnosticHandler;
|
||||
c.OptLevel = config->ltoo;
|
||||
c.CPU = getCPUStr();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user