[libc-commits] [libc] [libc] Enabling code coverage via Linux syscalls (PR #213271)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Tue Aug 4 00:42:08 PDT 2026
================
@@ -43,8 +43,151 @@ TestOptions parseOptions(int argc, char **argv) {
} // anonymous namespace
-// The C++ standard forbids declaring the main function with a linkage specifier
-// outisde of 'freestanding' mode, only define the linkage for hermetic tests.
+#if defined(__linux__)
----------------
kaladron wrote:
Target OS Macro: #if defined(__linux__) should use #include "src/__support/macros/properties/os.h" and #if defined(LIBC_TARGET_OS_IS_LINUX).
https://github.com/llvm/llvm-project/pull/213271
More information about the libc-commits
mailing list