[llvm] r237692 - Use cat and not type Under MSYS, same as Cygwin.

Yaron Keren yaron.keren at gmail.com
Tue May 19 05:59:23 PDT 2015


Author: yrnkrn
Date: Tue May 19 07:59:23 2015
New Revision: 237692

URL: http://llvm.org/viewvc/llvm-project?rev=237692&view=rev
Log:
Use cat and not type Under MSYS, same as Cygwin.
type means something else under the MSYS shell.

Patch by Tzafrir Poupko!


Modified:
    llvm/trunk/cmake/modules/AddLLVM.cmake

Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=237692&r1=237691&r2=237692&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Tue May 19 07:59:23 2015
@@ -91,7 +91,7 @@ function(add_llvm_symbol_exports target_
 
     set(CAT "cat")
     set(export_file_nativeslashes ${export_file})
-    if(WIN32 AND NOT CYGWIN)
+    if(WIN32 AND NOT CYGWIN AND NOT MSYS)
       set(CAT "type")
       # Convert ${export_file} to native format (backslashes) for "type"
       # Does not use file(TO_NATIVE_PATH) as it doesn't create a native





More information about the llvm-commits mailing list