[all-commits] [llvm/llvm-project] ac48b1: [Support] Change isatty to is_displayed

Douglas via All-commits all-commits at lists.llvm.org
Mon Mar 16 18:28:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ac48b1885ad8582b1acbe942250b37d5115246b5
      https://github.com/llvm/llvm-project/commit/ac48b1885ad8582b1acbe942250b37d5115246b5
  Author: Douglas Gliner <dgg5503 at rit.edu>
  Date:   2020-03-16 (Mon, 16 Mar 2020)

  Changed paths:
    M llvm/lib/Support/raw_ostream.cpp

  Log Message:
  -----------
  [Support] Change isatty to is_displayed

Currently, when building with the Unix support library and `isatty` does
not exist for the target platform (i.e. `HAVE_ISATTY` is false),
compilation of the file `raw_ostream.cpp` will fail due to direct use of
`isatty` in the function `raw_fd_ostream::preferred_buffer_size()`.

Use is_displayed() to fix the problem.

Reviewed By: probinson, MaskRay

Differential Revision: https://reviews.llvm.org/D75278




More information about the All-commits mailing list