[Lldb-commits] [PATCH] D13234: Use the correct Python lib for each build configuration generated by the Visual Studio CMake generator

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 29 09:06:39 PDT 2015


zturner added inline comments.

================
Comment at: cmake/modules/LLDBConfig.cmake:61
@@ +60,3 @@
+      # below, otherwise CMake will replace the whitespace with a semicolon in some contexts (which would stuff things up).
+      set (PYTHON_EXECUTABLE $<$<CONFIG:Debug>:${PYTHON_DEBUG_EXE}>$<$<NOT:$<CONFIG:Debug>>:${PYTHON_RELEASE_EXE}>)
+      set (PYTHON_LIBRARY $<$<CONFIG:Debug>:${PYTHON_DEBUG_LIB}>$<$<NOT:$<CONFIG:Debug>>:${PYTHON_RELEASE_LIB}>)
----------------
This line is hard to parse mentally, and I'm not sure I've seen this kind of nested generator expression.  I trust you when you say it's right, but can you explain what this does?


Repository:
  rL LLVM

http://reviews.llvm.org/D13234





More information about the lldb-commits mailing list