[libc][NFC] Add dummy errno target to satisfy mixed mode builds.
authorSiva Chandra Reddy <sivachandra@google.com>
Fri, 30 Jul 2021 17:38:04 +0000 (17:38 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 30 Jul 2021 17:42:48 +0000 (17:42 +0000)
commit381f9affabba647a44412803562b19519fc25611
tree495d3c9aff43e0c3739c231b0146f1c4e6c24abc
parente46badd4e9cd2bf2f412b1a857f62ecc88bde5a1
[libc][NFC] Add dummy errno target to satisfy mixed mode builds.

In mixed mode builds, we should not be including errno as part of
LLVM libc - errno from another library (or the system library) should be
used. But, other entrypoints which use errno list LLVM libc's errno as a
dep ta satisfy the full build mode. So, we add a dummy errno
implementation with empty files to make both mixed mode and full build
mode happy.
libc/src/errno/CMakeLists.txt
libc/src/errno/dummy_errno.cpp [new file with mode: 0644]
libc/src/errno/dummy_errno.h [new file with mode: 0644]
libc/test/src/errno/CMakeLists.txt