[libc-commits] [libc] 943dcf8 - [libc][windows] fix small build issues.

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Sep 27 15:59:10 PDT 2022


Author: Michael Jones
Date: 2022-09-27T15:59:01-07:00
New Revision: 943dcf87e3ad803090349ace69305c42c413aa28

URL: https://github.com/llvm/llvm-project/commit/943dcf87e3ad803090349ace69305c42c413aa28
DIFF: https://github.com/llvm/llvm-project/commit/943dcf87e3ad803090349ace69305c42c413aa28.diff

LOG: [libc][windows] fix small build issues.

The windows build has fallen behind a little, this patch fixes some
issues that were preventing it from building.
Specifically: Some subfolders weren't being included, leading to missing
targets in the cmake.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D134676

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libc/test/src/stdio/CMakeLists.txt b/libc/test/src/stdio/CMakeLists.txt
index 962fa270204e9..0922b52f7f75b 100644
--- a/libc/test/src/stdio/CMakeLists.txt
+++ b/libc/test/src/stdio/CMakeLists.txt
@@ -121,21 +121,23 @@ add_libc_unittest(
     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)


        


More information about the libc-commits mailing list