[llvm] r334632 - [CMake] Handle 'libtool' being at a path with spaces in it.

Jordan Rose via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 13 11:21:47 PDT 2018


Author: jrose
Date: Wed Jun 13 11:21:47 2018
New Revision: 334632

URL: http://llvm.org/viewvc/llvm-project?rev=334632&view=rev
Log:
[CMake] Handle 'libtool' being at a path with spaces in it.

This can happen on macOS if the user's Xcode is at a path with spaces in it.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=334632&r1=334631&r2=334632&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Jun 13 11:21:47 2018
@@ -92,7 +92,7 @@ if(CMAKE_HOST_APPLE AND APPLE)
 
     foreach(lang ${languages})
       set(CMAKE_${lang}_CREATE_STATIC_LIBRARY
-        "${CMAKE_LIBTOOL} -static ${LIBTOOL_NO_WARNING_FLAG} -o <TARGET> \
+        "\"${CMAKE_LIBTOOL}\" -static ${LIBTOOL_NO_WARNING_FLAG} -o <TARGET> \
         <LINK_FLAGS> <OBJECTS> ")
     endforeach()
   endif()




More information about the llvm-commits mailing list