[libc-commits] [PATCH] D134676: [libc][windows] fix small build issues.

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Sep 27 11:45:18 PDT 2022


michaelrj updated this revision to Diff 463297.
michaelrj added a comment.

split fenv changes to separate patch


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134676/new/

https://reviews.llvm.org/D134676

Files:
  libc/test/src/stdio/CMakeLists.txt


Index: libc/test/src/stdio/CMakeLists.txt
===================================================================
--- libc/test/src/stdio/CMakeLists.txt
+++ libc/test/src/stdio/CMakeLists.txt
@@ -121,21 +121,23 @@
     libc.src.stdio.puts
 )
 
-add_libc_unittest(
-  remove_test
-  SUITE
-    libc_stdio_unittests
-  SRCS
-    remove_test.cpp
-  DEPENDS
-    libc.include.errno
-    libc.include.unistd
-    libc.src.fcntl.open
-    libc.src.stdio.remove
-    libc.src.sys.stat.mkdirat
-    libc.src.unistd.access
-    libc.src.unistd.close
-)
+if(${LIBC_TARGET_OS} STREQUAL "linux")
+  add_libc_unittest(
+    remove_test
+    SUITE
+      libc_stdio_unittests
+    SRCS
+      remove_test.cpp
+    DEPENDS
+      libc.include.errno
+      libc.include.unistd
+      libc.src.fcntl.open
+      libc.src.stdio.remove
+      libc.src.sys.stat.mkdirat
+      libc.src.unistd.access
+      libc.src.unistd.close
+  )
+endif()
 
 add_subdirectory(printf_core)
 add_subdirectory(testdata)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134676.463297.patch
Type: text/x-patch
Size: 980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220927/1870c7a3/attachment.bin>


More information about the libc-commits mailing list