[Lldb-commits] [lldb] r226858 - Change wildcard . to literal . in regex for copying python.

Zachary Turner zturner at google.com
Thu Jan 22 12:30:29 PST 2015


Author: zturner
Date: Thu Jan 22 14:30:29 2015
New Revision: 226858

URL: http://llvm.org/viewvc/llvm-project?rev=226858&view=rev
Log:
Change wildcard . to literal . in regex for copying python.

On Windows we copy python27(_d).dll to the bin directory.  We do
this by looking at the PYTHON_LIBRARY specified by the user, which
is something like C:\foo\python27_d.lib, and replacing ".lib" with
".dll".  But ".lib" as a regex will also match "flib", etc.  So
make this a literal . instead of a wildcard .

Modified:
    lldb/trunk/scripts/CMakeLists.txt

Modified: lldb/trunk/scripts/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/CMakeLists.txt?rev=226858&r1=226857&r2=226858&view=diff
==============================================================================
--- lldb/trunk/scripts/CMakeLists.txt (original)
+++ lldb/trunk/scripts/CMakeLists.txt Thu Jan 22 14:30:29 2015
@@ -3,7 +3,7 @@ set(LLVM_NO_RTTI 1)
 file(GLOB SWIG_INPUTS Python/interface/*.i)
 
 if (CMAKE_SYSTEM_NAME MATCHES "Windows")
-    STRING(REGEX REPLACE ".lib" ".dll" PYTHON_DLL ${PYTHON_LIBRARY})
+    STRING(REGEX REPLACE "[.]lib" ".dll" PYTHON_DLL ${PYTHON_LIBRARY})
     file(COPY ${PYTHON_DLL} DESTINATION ${CMAKE_BINARY_DIR}/bin)
 endif ()
 





More information about the lldb-commits mailing list