[lld] 5176a76 - Fix build on Windows

Alex Brachet via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 11 15:47:33 PDT 2022


Author: Alex Brachet
Date: 2022-07-11T22:47:26Z
New Revision: 5176a7671f91c1ceb88578e11c635e70e9217f90

URL: https://github.com/llvm/llvm-project/commit/5176a7671f91c1ceb88578e11c635e70e9217f90
DIFF: https://github.com/llvm/llvm-project/commit/5176a7671f91c1ceb88578e11c635e70e9217f90.diff

LOG: Fix build on Windows

It seems like the `sed` on Windows is not particularly
smart. It's not actually needed in this place, so I've
removed it's usage and just created an invalid yaml
another way.

Added: 
    

Modified: 
    lld/test/COFF/vfsoverlay.test

Removed: 
    


################################################################################
diff  --git a/lld/test/COFF/vfsoverlay.test b/lld/test/COFF/vfsoverlay.test
index 0a34e597c507..5e27d6e67151 100644
--- a/lld/test/COFF/vfsoverlay.test
+++ b/lld/test/COFF/vfsoverlay.test
@@ -9,7 +9,7 @@
 # RUN:   | FileCheck %s
 # CHECK: error: {{[Nn]}}o such file or directory
 
-# RUN: sed -e "s|{|bad|g" %t/overlay.yaml > %t/badoverlay.yaml
+# RUN: echo "invalid yaml" > %t/badoverlay.yaml
 # RUN: not lld-link %S/Inputs/hello64.obj /libpath:/noexist /out:%t.exe /entry:main /defaultlib:notstd64 /vfsoverlay:%t/badoverlay.yaml 2>&1 \
 # RUN:   | FileCheck %s --check-prefix=BAD-OVERLAY
 # BAD-OVERLAY: error: Invalid vfs overlay


        


More information about the llvm-commits mailing list