[libc-commits] [libc] e17a47b - [libc][Obvious] Fix deps of few threads targets.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Tue May 12 16:15:32 PDT 2020


Author: Siva Chandra Reddy
Date: 2020-05-12T16:14:12-07:00
New Revision: e17a47b2d353737e25b24c8dfcc3e8984878b02e

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

LOG: [libc][Obvious] Fix deps of few threads targets.

A missing dep has been added, and a few redundent deps have been
removed.

Added: 
    

Modified: 
    libc/src/threads/linux/CMakeLists.txt
    libc/test/src/threads/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/src/threads/linux/CMakeLists.txt b/libc/src/threads/linux/CMakeLists.txt
index 844f5d3e07cf..63e956ec1500 100644
--- a/libc/src/threads/linux/CMakeLists.txt
+++ b/libc/src/threads/linux/CMakeLists.txt
@@ -47,7 +47,7 @@ add_entrypoint_object(
     libc.config.linux.linux_syscall_h
     libc.include.sys_syscall
     libc.include.threads
-    libc.src.sys.mman.mmap
+    libc.src.sys.mman.munmap
     libc.src.__support.common
 )
 

diff  --git a/libc/test/src/threads/CMakeLists.txt b/libc/test/src/threads/CMakeLists.txt
index de56a3f031ba..178323e92714 100644
--- a/libc/test/src/threads/CMakeLists.txt
+++ b/libc/test/src/threads/CMakeLists.txt
@@ -9,8 +9,6 @@ add_libc_unittest(
   DEPENDS
     libc.include.threads
     libc.src.errno.__errno_location
-    libc.src.sys.mman.munmap
-    libc.src.sys.mman.mmap
     libc.src.threads.thrd_create
     libc.src.threads.thrd_join
 )
@@ -24,8 +22,6 @@ add_libc_unittest(
   DEPENDS
     libc.include.threads
     libc.src.errno.__errno_location
-    libc.src.sys.mman.mmap
-    libc.src.sys.mman.munmap
     libc.src.threads.mtx_init
     libc.src.threads.mtx_lock
     libc.src.threads.mtx_unlock


        


More information about the libc-commits mailing list