raw_ostream.cpp: Introduce <fcntl.h> to let O_BINARY provided. Or, llvm::outs() would...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 17 Jul 2013 02:21:10 +0000 (02:21 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 17 Jul 2013 02:21:10 +0000 (02:21 +0000)
llvm/test/Object/check_binary_output.ll is expected to pass on win32.

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

lib/Support/raw_ostream.cpp
test/Object/check_binary_output.ll

index 3e5ce04d755ee77ebbff7a8d2599f436770850ca..92fa8b50a15ef848841a27a5c408d67e40cc57c9 100644 (file)
 #include <cerrno>
 #include <sys/stat.h>
 
+// <fcntl.h> may provide O_BINARY.
+#if defined(HAVE_FCNTL_H)
+# include <fcntl.h>
+#endif
+
 #if defined(HAVE_UNISTD_H)
 # include <unistd.h>
 #endif
index 02b52a3601cae448772567318148f7fffcd89f44..567f18e65ba571b9e9110b1affff7ed1137bbc23 100644 (file)
@@ -1,7 +1,4 @@
 ; This is not an assembly file, this is just to run the test.
 ; The test verifies that llvm-ar produces a binary output.
 
-; FIXME: They malform LF into CRLF. Investigating.
-; XFAIL: mingw32,win32
-
 ;RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/Inputs/very_long_bytecode_file_name.bc -