File tree Expand file tree Collapse file tree 3 files changed +35
-24
lines changed Expand file tree Collapse file tree 3 files changed +35
-24
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,7 @@ add_subdirectory(Frontend)
8
8
add_subdirectory (FrontendTool )
9
9
10
10
add_subdirectory (Optimizer )
11
+
12
+ if (FLANG_INCLUDE_TESTS )
13
+ add_subdirectory (Testing )
14
+ endif ()
Original file line number Diff line number Diff line change
1
+ #===-- lib/Testing/CMakeLists.txt ------------------------------------------===#
2
+ #
3
+ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ # See https://llvm.org/LICENSE.txt for license information.
5
+ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ #
7
+ #===------------------------------------------------------------------------===#
8
+
9
+ add_library (NonGTestTesting EXCLUDE_FROM_ALL
10
+ testing.cpp
11
+ fp-testing.cpp
12
+ )
13
+ set_target_properties (NonGTestTesting PROPERTIES FOLDER "Flang/Tests" )
14
+
15
+ if (LLVM_LINK_LLVM_DYLIB )
16
+ set (llvm_libs LLVM )
17
+ else ()
18
+ llvm_map_components_to_libnames (llvm_libs Support )
19
+ endif ()
20
+ target_link_libraries (NonGTestTesting ${llvm_libs} )
Original file line number Diff line number Diff line change 1
1
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
2
- add_library (FortranEvaluateTesting
3
- ${FLANG_SOURCE_DIR} /lib/Testing/testing.cpp
4
- ${FLANG_SOURCE_DIR} /lib/Testing/fp-testing.cpp
5
- )
6
- set_target_properties (FortranEvaluateTesting PROPERTIES FOLDER "Flang/Tests" )
7
- if (LLVM_LINK_LLVM_DYLIB )
8
- set (llvm_libs LLVM )
9
- else ()
10
- llvm_map_components_to_libnames (llvm_libs Support )
11
- endif ()
12
-
13
- target_link_libraries (FortranEvaluateTesting
14
- ${llvm_libs} )
15
2
16
3
add_flang_nongtest_unittest (leading-zero-bit-count
17
- FortranEvaluateTesting
4
+ NonGTestTesting
18
5
)
19
6
20
7
add_flang_nongtest_unittest (bit-population-count
21
- FortranEvaluateTesting
8
+ NonGTestTesting
22
9
)
23
10
24
11
add_flang_nongtest_unittest (uint128
25
- FortranEvaluateTesting
12
+ NonGTestTesting
26
13
)
27
14
28
15
add_flang_nongtest_unittest (expression
29
16
FortranSupport
30
- FortranEvaluateTesting
17
+ NonGTestTesting
31
18
FortranEvaluate
32
19
FortranSemantics
33
20
FortranParser
34
21
)
35
22
36
23
add_flang_nongtest_unittest (integer
37
- FortranEvaluateTesting
24
+ NonGTestTesting
38
25
FortranEvaluate
39
26
FortranSemantics
40
27
)
41
28
42
29
add_flang_nongtest_unittest (intrinsics
43
30
FortranSupport
44
- FortranEvaluateTesting
31
+ NonGTestTesting
45
32
FortranEvaluate
46
33
FortranDecimal
47
34
FortranSemantics
@@ -50,7 +37,7 @@ add_flang_nongtest_unittest(intrinsics
50
37
)
51
38
52
39
add_flang_nongtest_unittest (logical
53
- FortranEvaluateTesting
40
+ NonGTestTesting
54
41
FortranEvaluate
55
42
FortranSemantics
56
43
)
@@ -62,30 +49,30 @@ add_flang_nongtest_unittest(logical
62
49
set (LLVM_REQUIRES_EH ON )
63
50
set (LLVM_REQUIRES_RTTI ON )
64
51
add_flang_nongtest_unittest (real
65
- FortranEvaluateTesting
52
+ NonGTestTesting
66
53
FortranEvaluate
67
54
FortranDecimal
68
55
FortranSemantics
69
56
)
70
57
llvm_update_compile_flags (real.test )
71
58
72
59
add_flang_nongtest_unittest (reshape
73
- FortranEvaluateTesting
60
+ NonGTestTesting
74
61
FortranSemantics
75
62
FortranEvaluate
76
63
FortranRuntime
77
64
)
78
65
79
66
add_flang_nongtest_unittest (ISO-Fortran-binding
80
- FortranEvaluateTesting
67
+ NonGTestTesting
81
68
FortranEvaluate
82
69
FortranSemantics
83
70
FortranRuntime
84
71
)
85
72
86
73
add_flang_nongtest_unittest (folding
87
74
FortranSupport
88
- FortranEvaluateTesting
75
+ NonGTestTesting
89
76
FortranEvaluate
90
77
FortranSemantics
91
78
)
You can’t perform that action at this time.
0 commit comments