Use the debugginess of the python interpreter when symlinking _lldb.pyd.
authorZachary Turner <zturner@google.com>
Wed, 22 Apr 2015 22:53:18 +0000 (22:53 +0000)
committerZachary Turner <zturner@google.com>
Wed, 22 Apr 2015 22:53:18 +0000 (22:53 +0000)
commit0405d68bb472f208ef660ad69682fe1b54a58804
tree2876555eb36278da7172ceae9bdd11815a15b0b7
parent7d0e99c6019ca1c4c6708309ef5dade0db03b425
Use the debugginess of the python interpreter when symlinking _lldb.pyd.

Previously we would pass an argument to finishSwigWrapperClasses.py which
specified whether this was a debug or a release build.  But sometimes
CMAKE_BUILD_TYPE would not be set to anything, causing this argument
to be empty when passed in.  The only purpose of this argument was to
determine whether or not to append _d to the extension module when
creating the symlink.  This is only necessary when doing a debug
build of LLDB on Windows, which implies a debug interpreter, so we
replace this with a check to see if the running interpreter is a debug
one, and append _d if so.

llvm-svn: 235559
lldb/CMakeLists.txt
lldb/scripts/Python/finishSwigPythonLLDB.py
lldb/scripts/finishSwigWrapperClasses.py