[libc-commits] [PATCH] D122363: [libc][obvious] only test FILE on working platforms
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Mar 23 17:02:42 PDT 2022
michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.
The main code for the FILE struct is only enabled on platforms that it
works on, but before this patch the tests were included unconditionally.
rG LLVM Github Monorepo
@@ -1,3 +1,8 @@
+if(NOT (TARGET libc.src.__support.threads.mutex))
+ # Not all platforms have a mutex implementation. If mutex is unvailable,
+ # we just skip everything about files.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 456 bytes
Desc: not available
More information about the libc-commits