mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-06-26 10:29:57 +00:00
raw_ostream.cpp: Introduce <fcntl.h> to let O_BINARY provided. Or, llvm::outs() would be set to O_TEXT by default.
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
This commit is contained in:
parent
a38edf071d
commit
f7e73accb7
|
@ -27,6 +27,11 @@
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
// <fcntl.h> may provide O_BINARY.
|
||||||
|
#if defined(HAVE_FCNTL_H)
|
||||||
|
# include <fcntl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_UNISTD_H)
|
#if defined(HAVE_UNISTD_H)
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
; This is not an assembly file, this is just to run the test.
|
; This is not an assembly file, this is just to run the test.
|
||||||
; The test verifies that llvm-ar produces a binary output.
|
; 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 -
|
;RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
|
||||||
|
|
Loading…
Reference in New Issue
Block a user