Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / utils / CMakeLists.txt
blob7e597f632b6c46d9b6d1b92f5acec6ed06b060d4
1 add_custom_target(libcxx-generate-feature-test-macros
2     COMMAND "${Python3_EXECUTABLE}" "${LIBCXX_SOURCE_DIR}/utils/generate_feature_test_macro_components.py"
3     COMMENT "Generate the <version> header and tests for feature test macros.")
5 add_custom_target(libcxx-generate-std-clang-module-header
6   COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/generate_std_clang_module_header.py"
7   COMMENT "Generate the <__std_clang_module> header")
9 add_custom_target(libcxx-generate-std-cppm-in-file
10   COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/generate_std_cppm_in.py"
11   COMMENT "Generate the std.cppm.in file")
13 add_custom_target(libcxx-generate-extended-grapheme-cluster-tables
14     COMMAND
15         "${Python3_EXECUTABLE}"
16         "${LIBCXX_SOURCE_DIR}/utils/generate_extended_grapheme_cluster_table.py"
17         "${LIBCXX_SOURCE_DIR}/include/__format/extended_grapheme_cluster_table.h"
18     COMMENT "Generate the extended grapheme cluster header.")
20 add_custom_target(libcxx-generate-extended-grapheme-cluster-tests
21     COMMAND
22         "${Python3_EXECUTABLE}"
23         "${LIBCXX_SOURCE_DIR}/utils/generate_extended_grapheme_cluster_test.py"
24          "${LIBCXX_SOURCE_DIR}/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.h"
25     COMMENT "Generate the extended grapheme cluster header.")
27 add_custom_target(libcxx-generate-escaped-output-table
28     COMMAND
29         "${Python3_EXECUTABLE}"
30         "${LIBCXX_SOURCE_DIR}/utils/generate_escaped_output_table.py"
31         "${LIBCXX_SOURCE_DIR}/include/__format/escaped_output_table.h"
32     COMMENT "Generate the escaped output header")
34 add_custom_target(libcxx-generate-width-estimation-table
35     COMMAND
36         "${Python3_EXECUTABLE}"
37         "${LIBCXX_SOURCE_DIR}/utils/generate_width_estimation_table.py"
38         "${LIBCXX_SOURCE_DIR}/include/__format/width_estimation_table.h"
39     COMMENT "Generate the width estimation header")
41 add_custom_target(libcxx-generate-iwyu-mapping
42     COMMAND
43         "${Python3_EXECUTABLE}"
44         "${LIBCXX_SOURCE_DIR}/utils/generate_iwyu_mapping.py"
45     COMMENT "Generate the mapping file for include-what-you-use")
47 add_custom_target(libcxx-generate-files
48     DEPENDS libcxx-generate-feature-test-macros
49             libcxx-generate-std-clang-module-header
50             libcxx-generate-std-cppm-in-file
51             libcxx-generate-extended-grapheme-cluster-tables
52             libcxx-generate-extended-grapheme-cluster-tests
53             libcxx-generate-escaped-output-table
54             libcxx-generate-width-estimation-table
55             libcxx-generate-iwyu-mapping
56     COMMENT "Create all the auto-generated files in libc++ and its tests.")