File tree Expand file tree Collapse file tree 14 files changed +78
-27
lines changed Expand file tree Collapse file tree 14 files changed +78
-27
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ add_libc_fuzzer(
46
46
libc.src.math.truncf
47
47
libc.src.math.truncl
48
48
libc.src.__support.FPUtil.fputil
49
- libc.src.__support.CPP.standalone_cpp
49
+ libc.src.__support.CPP.type_traits
50
50
)
51
51
52
52
add_libc_fuzzer (
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ add_header_library(
23
23
.ctype_utils
24
24
libc.include.errno
25
25
libc.src.errno.errno
26
- libc.src.__support.CPP.standalone_cpp
26
+ libc.src.__support.CPP.limits
27
27
)
28
28
29
29
add_header_library (
@@ -44,7 +44,7 @@ add_header_library(
44
44
.high_precision_decimal
45
45
libc.include.errno
46
46
libc.src.errno.errno
47
- libc.src.__support.CPP.standalone_cpp
47
+ libc.src.__support.CPP.limits
48
48
libc.src.__support.FPUtil.fputil
49
49
)
50
50
Original file line number Diff line number Diff line change 1
- # TODO(michaelrj): separate the standalone_cpp library into individual targets.
2
1
add_header_library (
3
- standalone_cpp
2
+ array
4
3
HDRS
5
4
Array.h
5
+ )
6
+
7
+ add_header_library (
8
+ array_ref
9
+ HDRS
6
10
ArrayRef.h
11
+ )
12
+
13
+
14
+ add_header_library (
15
+ bit
16
+ HDRS
7
17
Bit.h
18
+ )
19
+
20
+
21
+ add_header_library (
22
+ bitset
23
+ HDRS
8
24
Bitset.h
25
+ )
26
+
27
+ add_header_library (
28
+ functional
29
+ HDRS
9
30
Functional.h
31
+ )
32
+
33
+ add_header_library (
34
+ limits
35
+ HDRS
10
36
Limits.h
37
+ )
38
+
39
+ add_header_library (
40
+ string_view
41
+ HDRS
11
42
StringView.h
43
+ )
44
+
45
+ add_header_library (
46
+ type_traits
47
+ HDRS
12
48
TypeTraits.h
49
+ )
50
+
51
+ add_header_library (
52
+ utility
53
+ HDRS
13
54
Utility.h
14
55
)
15
56
Original file line number Diff line number Diff line change
1
+ #TODO(michaelrj): separate the fputil library into individual targets.
1
2
add_header_library (
2
3
fputil
3
4
HDRS
@@ -19,7 +20,8 @@ add_header_library(
19
20
libc.include.errno
20
21
libc.include.fenv
21
22
libc.src.__support.common
22
- libc.src.__support.CPP.standalone_cpp
23
+ libc.src.__support.CPP.type_traits
24
+ libc.src.__support.CPP.bit
23
25
libc.src.errno.errno
24
26
)
25
27
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ add_header_library(
5
5
HDRS
6
6
string_utils.h
7
7
DEPENDS
8
- libc.src.__support.CPP.standalone_cpp
8
+ libc.src.__support.CPP.bitset
9
9
)
10
10
11
11
add_entrypoint_object (
@@ -210,7 +210,7 @@ add_entrypoint_object(
210
210
HDRS
211
211
strspn.h
212
212
DEPENDS
213
- libc.src.__support.CPP.standalone_cpp
213
+ libc.src.__support.CPP.bitset
214
214
)
215
215
216
216
add_entrypoint_object (
Original file line number Diff line number Diff line change
1
+ #TODO(michaelrj): split out the implementations from memory_utils
1
2
add_header_library (
2
3
memory_utils
3
4
HDRS
@@ -8,7 +9,7 @@ add_header_library(
8
9
memcpy_implementations.h
9
10
memset_implementations.h
10
11
DEPS
11
- standalone_cpp
12
+ libc.src.__support.CPP.bit
12
13
)
13
14
14
15
add_header_library (
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ add_libc_unittest(
7
7
SRCS
8
8
bitset_test.cpp
9
9
DEPENDS
10
- libc.src.__support.CPP.standalone_cpp
10
+ libc.src.__support.CPP.bitset
11
11
)
12
12
13
13
add_libc_unittest (
@@ -17,7 +17,7 @@ add_libc_unittest(
17
17
SRCS
18
18
stringview_test.cpp
19
19
DEPENDS
20
- libc.src.__support.CPP.standalone_cpp
20
+ libc.src.__support.CPP.string_view
21
21
)
22
22
23
23
add_libc_unittest (
@@ -27,7 +27,7 @@ add_libc_unittest(
27
27
SRCS
28
28
limits_test.cpp
29
29
DEPENDS
30
- libc.src.__support.CPP.standalone_cpp
30
+ libc.src.__support.CPP.limits
31
31
)
32
32
33
33
add_libc_unittest (
@@ -37,7 +37,7 @@ add_libc_unittest(
37
37
SRCS
38
38
arrayref_test.cpp
39
39
DEPENDS
40
- libc.src.__support.CPP.standalone_cpp
40
+ libc.src.__support.CPP.array_ref
41
41
)
42
42
43
43
add_libc_unittest (
@@ -57,7 +57,7 @@ add_libc_unittest(
57
57
SRCS
58
58
integer_sequence_test.cpp
59
59
DEPENDS
60
- libc.src.__support.CPP.standalone_cpp
60
+ libc.src.__support.CPP.utility
61
61
)
62
62
63
63
add_libc_unittest (
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ add_fp_unittest(
12
12
DEPENDS
13
13
libc.include.errno
14
14
libc.src.math.cosf
15
- libc.src.__support.CPP.standalone_cpp
15
+ libc.src.__support.CPP.array
16
16
libc.src.__support.FPUtil.fputil
17
17
)
18
18
@@ -40,7 +40,7 @@ add_fp_unittest(
40
40
DEPENDS
41
41
libc.include.errno
42
42
libc.src.math.sinf
43
- libc.src.__support.CPP.standalone_cpp
43
+ libc.src.__support.CPP.array
44
44
libc.src.__support.FPUtil.fputil
45
45
)
46
46
@@ -68,7 +68,7 @@ add_fp_unittest(
68
68
DEPENDS
69
69
libc.include.errno
70
70
libc.src.math.sincosf
71
- libc.src.__support.CPP.standalone_cpp
71
+ libc.src.__support.CPP.array
72
72
libc.src.__support.FPUtil.fputil
73
73
)
74
74
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ add_object_library(
6
6
exhaustive_test.h
7
7
SRCS
8
8
exhaustive_test.cpp
9
- DEPENDS
10
- libc.src.__support.CPP.standalone_cpp
11
9
)
12
10
13
11
add_fp_unittest (
Original file line number Diff line number Diff line change @@ -226,7 +226,8 @@ if(LLVM_LIBC_FULL_BUILD)
226
226
libc.src.stdlib._Exit
227
227
libc.src.stdlib.exit
228
228
libc.src.stdlib.atexit
229
- libc.src.__support.CPP.standalone_cpp
229
+ libc.src.__support.CPP.array
230
+ libc.src.__support.CPP.utility
230
231
)
231
232
232
233
# add_libc_unittest(
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ add_libc_unittest(
8
8
utils_test.cpp
9
9
DEPENDS
10
10
libc.src.string.memory_utils.memory_utils
11
- libc.src.__support.CPP.standalone_cpp
11
+ libc.src.__support.CPP.array
12
+ libc.src.__support.CPP.array_ref
12
13
COMPILE_OPTIONS
13
14
${LIBC_COMPILE_OPTIONS_NATIVE}
14
15
-ffreestanding
Original file line number Diff line number Diff line change @@ -7,5 +7,7 @@ add_libc_unittest(
7
7
SRCS
8
8
testfilter_test.cpp
9
9
DEPENDS
10
- libc.src.__support.CPP.standalone_cpp
10
+ # TODO(michaelrj): Remove this dependancy. It's only here because all unit
11
+ # tests must have at least one dependancy.
12
+ libc.src.__support.CPP.bit
11
13
)
Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ if(LIBC_TESTS_CAN_USE_MPFR)
6
6
add_compile_options (
7
7
-O3
8
8
)
9
- add_dependencies (libcMPFRWrapper libc.src.__support.CPP.standalone_cpp libc.src.__support.FPUtil.fputil LibcUnitTest )
9
+ add_dependencies (
10
+ libcMPFRWrapper
11
+ libc.src.__support.CPP.string_view
12
+ libc.src.__support.CPP.type_traits
13
+ libc.src.__support.FPUtil.fputil
14
+ LibcUnitTest
15
+ )
10
16
if (EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH} )
11
17
target_include_directories (libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH} /include )
12
18
target_link_directories (libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH} /lib )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ add_library(
5
5
LibcTest.h
6
6
)
7
7
target_include_directories (LibcUnitTest PUBLIC ${LIBC_SOURCE_DIR} )
8
- add_dependencies (LibcUnitTest libc.src.__support.CPP.standalone_cpp )
8
+ add_dependencies (LibcUnitTest libc.src.__support.CPP.type_traits )
9
9
target_link_libraries (LibcUnitTest PUBLIC libc_test_utils )
10
10
11
11
add_library (
@@ -14,7 +14,7 @@ add_library(
14
14
)
15
15
16
16
target_include_directories (LibcUnitTestMain PUBLIC ${LIBC_SOURCE_DIR} )
17
- add_dependencies (LibcUnitTestMain LibcUnitTest libc.src.__support.CPP.standalone_cpp )
17
+ add_dependencies (LibcUnitTestMain LibcUnitTest )
18
18
target_link_libraries (LibcUnitTestMain PUBLIC LibcUnitTest libc_test_utils )
19
19
20
20
add_library (
@@ -29,7 +29,6 @@ target_link_libraries(LibcFPTestHelpers LibcUnitTest)
29
29
add_dependencies (
30
30
LibcFPTestHelpers
31
31
LibcUnitTest
32
- libc.src.__support.CPP.standalone_cpp
33
32
libc.src.__support.FPUtil.fputil
34
33
)
35
34
@@ -43,5 +42,5 @@ target_link_libraries(LibcMemoryHelpers LibcUnitTest)
43
42
add_dependencies (
44
43
LibcMemoryHelpers
45
44
LibcUnitTest
46
- libc.src.__support.CPP.standalone_cpp
45
+ libc.src.__support.CPP.array_ref
47
46
)
You can’t perform that action at this time.
0 commit comments