[libcxx-commits] [libcxx] [llvm] [libcxx] Add `LIBCXX_HAS_TERMINAL_AVAILABLE` CMake option to disable `print` terminal checks (PR #99259)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 18 06:33:23 PDT 2024


================
@@ -199,7 +199,7 @@ _LIBCPP_HIDE_FROM_ABI inline bool __is_terminal([[maybe_unused]] FILE* __stream)
   // the behavior in the test. This is not part of the public API.
 #  ifdef _LIBCPP_TESTING_PRINT_IS_TERMINAL
   return _LIBCPP_TESTING_PRINT_IS_TERMINAL(__stream);
-#  elif _LIBCPP_AVAILABILITY_HAS_PRINT == 0
+#  elif _LIBCPP_AVAILABILITY_HAS_PRINT == 0 || defined(_LIBCPP_HAS_NO_TERMINAL)
----------------
mordante wrote:

There are some sh tests in `/data/src/llvm/libcxx/test/std/input.output/iostream.format/print.fun/`. These sh tests are marked `// UNSUPPORTED: no-filesystem`

@jhuber6 Are you running the test with filesystem disabled.

https://github.com/llvm/llvm-project/pull/99259


More information about the libcxx-commits mailing list