Skip to content

Commit 2ec7c1f

Browse files
committed
remove libc.src.errno.errno from CMake when it's not needed
1 parent 319dac0 commit 2ec7c1f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libc/test/src/math/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,6 @@ add_fp_unittest(
20152015
SRCS
20162016
logf_test.cpp
20172017
DEPENDS
2018-
libc.src.errno.errno
20192018
libc.src.math.logf
20202019
libc.src.__support.FPUtil.fp_bits
20212020
)
@@ -2087,7 +2086,6 @@ add_fp_unittest(
20872086
SRCS
20882087
log10f_test.cpp
20892088
DEPENDS
2090-
libc.src.errno.errno
20912089
libc.src.math.log10f
20922090
libc.src.__support.FPUtil.fp_bits
20932091
)
@@ -2136,7 +2134,7 @@ add_fp_unittest(
21362134
HDRS
21372135
FModTest.h
21382136
DEPENDS
2139-
libc.src.errno.errno
2137+
libc.hdr.errno_macros
21402138
libc.src.math.fmodf
21412139
libc.src.__support.FPUtil.basic_operations
21422140
libc.src.__support.FPUtil.nearest_integer_operations
@@ -2153,7 +2151,7 @@ add_fp_unittest(
21532151
HDRS
21542152
FModTest.h
21552153
DEPENDS
2156-
libc.src.errno.errno
2154+
libc.hdr.errno_macros
21572155
libc.src.math.fmod
21582156
libc.src.__support.FPUtil.basic_operations
21592157
libc.src.__support.FPUtil.nearest_integer_operations

libc/test/src/math/FModTest.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef LLVM_LIBC_TEST_SRC_MATH_FMODTEST_H
1010
#define LLVM_LIBC_TEST_SRC_MATH_FMODTEST_H
1111

12+
#include "hdr/errno_macros.h"
1213
#include "src/__support/FPUtil/BasicOperations.h"
1314
#include "src/__support/FPUtil/NearestIntegerOperations.h"
1415
#include "test/UnitTest/FEnvSafeTest.h"

0 commit comments

Comments
 (0)