diff options
| author | Sirraide <aeternalmail@gmail.com> | 2025-06-17 15:03:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-17 15:03:37 +0200 |
| commit | b4e39e4ff923334a8a1fdcc6d92b01d3885a01f2 (patch) | |
| tree | 7bfc72e25570070529767e0e60c7964b21dce53f /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
| parent | b91936aeffb798b7deb67aff7bc5c84acea5452e (diff) | |
| download | llvm-b4e39e4ff923334a8a1fdcc6d92b01d3885a01f2.zip llvm-b4e39e4ff923334a8a1fdcc6d92b01d3885a01f2.tar.gz llvm-b4e39e4ff923334a8a1fdcc6d92b01d3885a01f2.tar.bz2 | |
[LLVM] [Support] Query the terminal width using `ioctl()` (#143514)
On unix systems, we were trying to determine the terminal width using
the `COULMNS` environment variable. Unfortunately, `COLUMNS` is not
exported by all shells and thus not available on some systems.
We were previously using `ioctl()` for this; fall back to doing so if `COLUMNS`
does not exist or does not store a positive integer.
This essentially reverts a3eb3d3d92d037fe3c9deaad87f6fc42fe9ea766 and
parts of https://reviews.llvm.org/D61326.
For more information, see #139499.
Fixes #139499.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
0 files changed, 0 insertions, 0 deletions
