This is an archive of the discontinued LLVM Phabricator instance.

Unify XDEBUG and EXPENSIVE_CHECKS (into the latter), and add an option to the cmake build to enable them.
ClosedPublic

Authored by filcab on Apr 29 2016, 7:50 AM.

Details

Summary

Historically, we had a switch in the Makefiles for turning on "expensive
checks". This has never been ported to the cmake build, but the
(dead-ish) code is still around.

This will also make it easier to turn it on in buildbots.

Diff Detail

Repository
rL LLVM

Event Timeline

filcab updated this revision to Diff 55599.Apr 29 2016, 7:50 AM
filcab retitled this revision from to Unify XDEBUG and EXPENSIVE_CHECKS (into the latter), and add an option to the cmake build to enable them..
filcab updated this object.
filcab added a reviewer: chandlerc.
filcab added subscribers: llvm-commits, gberry, RKSimon.
chandlerc accepted this revision.Apr 29 2016, 8:10 AM
chandlerc edited edge metadata.

LGTM, nice!

cmake/modules/HandleLLVMOptions.cmake
48–49 ↗(On Diff #55599)

No need for the spaces inside the ()s here AFAIK... but whatever. =]

This revision is now accepted and ready to land.Apr 29 2016, 8:10 AM
filcab added a subscriber: filcab.Apr 29 2016, 8:25 AM

Heh. I was going for the "be consistent with the code around".
On a second look I noticed consistency is very far away anyway :-P

Will commit soon.

This revision was automatically updated to reflect the committed changes.