[all-commits] [llvm/llvm-project] 0f6ef9: [libc][NFC] Put definitions of stdout and friends ...
Siva Chandra via All-commits
all-commits at lists.llvm.org
Thu Aug 17 12:48:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f6ef9bc2a14be0a5fdb0d05fc6bb2d5474bf0c6
https://github.com/llvm/llvm-project/commit/0f6ef9bc2a14be0a5fdb0d05fc6bb2d5474bf0c6
Author: Siva Chandra Reddy <sivachandra at google.com>
Date: 2023-08-17 (Thu, 17 Aug 2023)
Changed paths:
M libc/src/__support/File/CMakeLists.txt
M libc/src/__support/File/linux/CMakeLists.txt
M libc/src/__support/File/linux/file.cpp
A libc/src/__support/File/linux/file.h
A libc/src/__support/File/linux/stderr.cpp
A libc/src/__support/File/linux/stdin.cpp
A libc/src/__support/File/linux/stdout.cpp
M libc/src/stdio/CMakeLists.txt
M libc/src/stdio/generic/CMakeLists.txt
M libc/src/unistd/CMakeLists.txt
M libc/test/src/__support/File/CMakeLists.txt
M libc/test/src/__support/File/platform_file_test.cpp
A libc/test/src/__support/File/platform_stderr_test.cpp
A libc/test/src/__support/File/platform_stdin_test.cpp
A libc/test/src/__support/File/platform_stdout_test.cpp
M libc/test/src/stdio/CMakeLists.txt
M libc/test/src/unistd/CMakeLists.txt
M libc/test/src/unistd/getopt_test.cpp
Log Message:
-----------
[libc][NFC] Put definitions of stdout and friends into their own object files.
This is done so that tests which only require platform file but not the
platform streams can be run as unit tests. The tests which use platform
streams can only be hermetic tests to avoid conflicts with the
system-libc streams.
Fixes:
https://github.com/llvm/llvm-project/issues/64663
https://github.com/llvm/llvm-project/issues/63558
Reviewed By: jhuber6
Differential Revision: https://reviews.llvm.org/D158193
More information about the All-commits
mailing list