projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e687d5
)
[AsmParser] Fix preserve-comments-crlf.s on FreeBSD
author
Fangrui Song
<maskray@google.com>
Thu, 26 Jul 2018 06:07:03 +0000
(06:07 +0000)
committer
Fangrui Song
<maskray@google.com>
Thu, 26 Jul 2018 06:07:03 +0000
(06:07 +0000)
--strip-trailing-cr is a diffutils option which is also available on
BSD-licensed diff introduced in FreeBSD 11.2, however, it has a bug
comparing files mixing \r and \r\n. Use -b (POSIX) instead.
llvm-svn: 338008
llvm/test/MC/AsmParser/preserve-comments-crlf.s
patch
|
blob
|
history
diff --git
a/llvm/test/MC/AsmParser/preserve-comments-crlf.s
b/llvm/test/MC/AsmParser/preserve-comments-crlf.s
index
052870c
..
4fbb822
100644
(file)
--- a/
llvm/test/MC/AsmParser/preserve-comments-crlf.s
+++ b/
llvm/test/MC/AsmParser/preserve-comments-crlf.s
@@
-1,6
+1,6
@@
#REQUIRES: shell
#RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %s > %t
- #RUN: diff -
-strip-trailing-cr
%s %t
+ #RUN: diff -
b
%s %t
.text
foo: #Comment here