-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
Description
| Bugzilla Link | 9687 |
| Version | trunk |
| OS | Windows 2000 |
| Blocks | llvm/llvm-bugzilla-archive#9703 |
| Attachments | Patch to avoid using "set -o pipefail" when not supported |
| Reporter | LLVM Bugzilla Contributor |
| CC | @emaste,@modocache,@ZviRackover |
Extended Description
My platform is: Developer Studio 2008 (MSVC 9), CMake generating NMake makefiles, MKS 9.
MKS provides unix-like command line tools, though many provide only very basic compatibility.
When CMake configures the tree, all the test scripts begin with "set -o pipefail".
Unfortunately MKS bash doesn't understand the pipefail option:
D:\llvmtrunk\llvm\utils>which bash
c:/mks/mksnt/bash.exe
D:\llvmtrunk\llvm\utils>bash -c "set -o pipefail"
set: Unknown option "pipefail"
I'm attaching a patch to work around this limitation.
Tested on:
- LLVM trunk Windows + Cmake + MKS + NMake makefiles
- LLVM 2.8 Linux (with recent GNU batsh)