[all-commits] [llvm/llvm-project] ed07e1: [SystemZ/ZOS] Add header file to encapsulate use o...
Kai Nacke via All-commits
all-commits at lists.llvm.org
Wed Aug 26 09:46:23 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ed07e1fe0ffdb2c1dbff26ff4cf7558e0c419737
https://github.com/llvm/llvm-project/commit/ed07e1fe0ffdb2c1dbff26ff4cf7558e0c419737
Author: Kai Nacke <kai.nacke at de.ibm.com>
Date: 2020-08-26 (Wed, 26 Aug 2020)
Changed paths:
M clang/lib/Driver/Driver.cpp
M llvm/cmake/config-ix.cmake
M llvm/include/llvm/Config/config.h.cmake
A llvm/include/llvm/Support/ExitCodes.h
M llvm/lib/Support/CrashRecoveryContext.cpp
M llvm/lib/Support/Unix/Signals.inc
Log Message:
-----------
[SystemZ/ZOS] Add header file to encapsulate use of <sysexits.h>
The non-standard header file `<sysexits.h>` provides some return values.
`EX_IOERR` is used to as a special value to signal a broken pipe to the clang driver.
On z/OS Unix System Services, this header file does not exists. This patch
- adds a check for `<sysexits.h>`, removing the dependency on `LLVM_ON_UNIX`
- adds a new header file `llvm/Support/ExitCodes`, which either includes
`<sysexits.h>` or defines `EX_IOERR`
- updates the users of `EX_IOERR` to include the new header file
Reviewed By: hubert.reinterpretcast
Differential Revision: https://reviews.llvm.org/D83472
More information about the All-commits
mailing list