[libc-commits] [libc] c08af2c - [libc][NFC] Cleanup dependencies in src/signal and test/src/signal.
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Tue Apr 21 22:25:28 PDT 2020
Author: Siva Chandra Reddy
Date: 2020-04-21T22:25:01-07:00
New Revision: c08af2c11ad1f3bedef4a2dd307d98e162f19f4e
URL: https://github.com/llvm/llvm-project/commit/c08af2c11ad1f3bedef4a2dd307d98e162f19f4e
DIFF: https://github.com/llvm/llvm-project/commit/c08af2c11ad1f3bedef4a2dd307d98e162f19f4e.diff
LOG: [libc][NFC] Cleanup dependencies in src/signal and test/src/signal.
Reviewers: abrachet
Differential Revision: https://reviews.llvm.org/D78585
Added:
Modified:
libc/src/signal/linux/CMakeLists.txt
libc/test/src/signal/CMakeLists.txt
libc/test/src/signal/sigaddset_test.cpp
Removed:
################################################################################
diff --git a/libc/src/signal/linux/CMakeLists.txt b/libc/src/signal/linux/CMakeLists.txt
index 47442f6a1b6f..fc4a7aa32bf2 100644
--- a/libc/src/signal/linux/CMakeLists.txt
+++ b/libc/src/signal/linux/CMakeLists.txt
@@ -38,10 +38,10 @@ add_entrypoint_object(
../sigaction.h
DEPENDS
.__restore
- .raise
libc.config.linux.linux_syscall_h
libc.include.signal
libc.include.sys_syscall
+ libc.src.errno.__errno_location
)
add_entrypoint_object(
diff --git a/libc/test/src/signal/CMakeLists.txt b/libc/test/src/signal/CMakeLists.txt
index 2a9dce860f6e..b5c1281b8102 100644
--- a/libc/test/src/signal/CMakeLists.txt
+++ b/libc/test/src/signal/CMakeLists.txt
@@ -18,11 +18,10 @@ add_libc_unittest(
SRCS
sigaction_test.cpp
DEPENDS
- libc.src.signal.sigaction
- libc.src.signal.raise
- libc.include.signal
libc.include.errno
- libc.src.errno.__errno_location
+ libc.include.signal
+ libc.src.signal.raise
+ libc.src.signal.sigaction
)
add_libc_unittest(
@@ -32,12 +31,12 @@ add_libc_unittest(
SRCS
sigprocmask_test.cpp
DEPENDS
- libc.include.signal
+ libc.include.errno
libc.src.errno.__errno_location
libc.src.signal.raise
- libc.src.signal.sigprocmask
libc.src.signal.sigaddset
libc.src.signal.sigemptyset
+ libc.src.signal.sigprocmask
)
add_libc_unittest(
@@ -47,8 +46,8 @@ add_libc_unittest(
SRCS
sigaddset_test.cpp
DEPENDS
+ libc.include.errno
libc.include.signal
- libc.src.errno.__errno_location
libc.src.signal.sigaddset
)
@@ -63,7 +62,6 @@ add_libc_unittest(
libc.include.signal
libc.src.errno.__errno_location
libc.src.signal.raise
- libc.src.signal.sigaction
libc.src.signal.signal
)
@@ -76,7 +74,6 @@ add_libc_unittest(
DEPENDS
libc.include.errno
libc.include.signal
- libc.src.errno.__errno_location
libc.src.signal.raise
libc.src.signal.sigfillset
libc.src.signal.sigprocmask
@@ -91,7 +88,6 @@ add_libc_unittest(
DEPENDS
libc.include.errno
libc.include.signal
- libc.src.errno.__errno_location
libc.src.signal.raise
libc.src.signal.sigdelset
libc.src.signal.sigfillset
diff --git a/libc/test/src/signal/sigaddset_test.cpp b/libc/test/src/signal/sigaddset_test.cpp
index d0e67ea01e95..f106edb57f90 100644
--- a/libc/test/src/signal/sigaddset_test.cpp
+++ b/libc/test/src/signal/sigaddset_test.cpp
@@ -8,7 +8,6 @@
#include "include/errno.h"
#include "include/signal.h"
-#include "src/errno/llvmlibc_errno.h"
#include "src/signal/sigaddset.h"
#include "utils/UnitTest/ErrnoSetterMatcher.h"
More information about the libc-commits
mailing list