Use cat and not type Under MSYS, same as Cygwin.
authorYaron Keren <yaron.keren@gmail.com>
Tue, 19 May 2015 12:59:23 +0000 (12:59 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 19 May 2015 12:59:23 +0000 (12:59 +0000)
type means something else under the MSYS shell.

Patch by Tzafrir Poupko!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237692 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index cc14061d7d85035b9883b8466f83b3de5d286725..85a09845b2ef156a9cf8b6420dd10b9293182998 100644 (file)
@@ -91,7 +91,7 @@ function(add_llvm_symbol_exports target_name export_file)
 
     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