This is an archive of the discontinued LLVM Phabricator instance.

Don't compile scripts directory if LLDB_DISABLE_PYTHON is set
ClosedPublic

Authored by labath on Apr 7 2015, 2:53 AM.

Details

Summary

What looks like a typo has caused the scripts/Python directory to be compiled on non-Windows
platforms even with LLDB_DISABLE_PYTHON, which failed if Python.h was unavaiable. This changes
the condition to avoid compilation if LLDB_DISABLE_PYTHON is set.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 23317.Apr 7 2015, 2:53 AM
labath retitled this revision from to Don't compile scripts directory if LLDB_DISABLE_PYTHON is set.
labath updated this object.
labath edited the test plan for this revision. (Show Details)
labath added a reviewer: zturner.
labath added a subscriber: Unknown Object (MLST).
This revision was automatically updated to reflect the committed changes.

Actually sorry, the new check doesn't make sense either, now windows will
never include it. Can you change it to just if NOT LLDB_DISABLE_PYTHON

labath added a comment.Apr 7 2015, 8:33 AM

No problem. Commited as r234321.