File tree Expand file tree Collapse file tree 5 files changed +4
-23
lines changed Expand file tree Collapse file tree 5 files changed +4
-23
lines changed Original file line number Diff line number Diff line change @@ -1059,7 +1059,7 @@ endforeach()
1059
1059
# "include" for dependency tracking.
1060
1060
add_custom_command (OUTPUT "${LIBCXX_GENERATED_INCLUDE_DIR} /libcxx.imp"
1061
1061
COMMAND "${Python3_EXECUTABLE} " "${LIBCXX_SOURCE_DIR} /utils/generate_iwyu_mapping.py" "-o" "${LIBCXX_GENERATED_INCLUDE_DIR} /libcxx.imp"
1062
- DEPENDS ${_all_includes}
1062
+ DEPENDS " ${LIBCXX_SOURCE_DIR} /utils/libcxx/header_information.py"
1063
1063
COMMENT "Generate the mapping file for include-what-you-use"
1064
1064
)
1065
1065
list (APPEND _all_includes "${LIBCXX_GENERATED_INCLUDE_DIR} /libcxx.imp" )
Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ endforeach()
1037
1037
# "include" for dependency tracking.
1038
1038
add_custom_command (OUTPUT "${LIBCXX_GENERATED_INCLUDE_DIR} /libcxx.imp"
1039
1039
COMMAND "${Python3_EXECUTABLE} " "${LIBCXX_SOURCE_DIR} /utils/generate_iwyu_mapping.py" "-o" "${LIBCXX_GENERATED_INCLUDE_DIR} /libcxx.imp"
1040
- DEPENDS ${_all_includes}
1040
+ DEPENDS " ${LIBCXX_SOURCE_DIR} /utils/libcxx/header_information.py"
1041
1041
COMMENT "Generate the mapping file for include-what-you-use"
1042
1042
)
1043
1043
list (APPEND _all_includes "${LIBCXX_GENERATED_INCLUDE_DIR} /libcxx.imp" )
Original file line number Diff line number Diff line change 6
6
#
7
7
# ===----------------------------------------------------------------------===##
8
8
9
- import os , pathlib , functools
9
+ import pathlib , functools
10
10
11
- libcxx_root = pathlib .Path (os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . abspath ( __file__ )))))
11
+ libcxx_root = pathlib .Path (__file__ ). resolve (). parent . parent . parent
12
12
libcxx_include = libcxx_root / "include"
13
13
assert libcxx_root .exists ()
14
14
Original file line number Diff line number Diff line change @@ -86,12 +86,6 @@ set(LIBCXXABI_STATIC_OUTPUT_NAME "c++abi" CACHE STRING "Output name for the stat
86
86
87
87
set (LIBCXXABI_INSTALL_INCLUDE_DIR "${CMAKE_INSTALL_INCLUDEDIR} /c++/v1" CACHE STRING "Path to install the libc++abi headers at." )
88
88
89
- if (LLVM_LIBRARY_OUTPUT_INTDIR )
90
- set (LIBCXXABI_GENERATED_INCLUDE_DIR "${LLVM_BINARY_DIR} /include/c++/v1" )
91
- else ()
92
- set (LIBCXXABI_GENERATED_INCLUDE_DIR "${CMAKE_BINARY_DIR} /include/c++/v1" )
93
- endif ()
94
-
95
89
set (LIBCXXABI_LIBCXX_LIBRARY_PATH "" CACHE PATH "The path to libc++ library." )
96
90
set (LIBCXXABI_LIBRARY_VERSION "1.0" CACHE STRING
97
91
"Version of libc++abi. This will be reflected in the name of the shared \
Original file line number Diff line number Diff line change @@ -3,20 +3,7 @@ set(files
3
3
cxxabi.h
4
4
)
5
5
6
- foreach (f ${files} )
7
- set (src "${CMAKE_CURRENT_SOURCE_DIR} /${f} " )
8
- set (dst "${LIBCXXABI_GENERATED_INCLUDE_DIR} /${f} " )
9
- add_custom_command (OUTPUT ${dst}
10
- DEPENDS ${src}
11
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dst}
12
- COMMENT "Copying CXXABI header ${f} " )
13
- list (APPEND _all_includes "${dst} " )
14
- endforeach ()
15
-
16
- add_custom_target (generate-cxxabi-headers ALL DEPENDS ${_all_includes} )
17
-
18
6
add_library (cxxabi-headers INTERFACE )
19
- add_dependencies (cxxabi-headers generate-cxxabi-headers )
20
7
target_include_directories (cxxabi-headers INTERFACE "${CMAKE_CURRENT_SOURCE_DIR} " )
21
8
22
9
if (LIBCXXABI_INSTALL_HEADERS )
You can’t perform that action at this time.
0 commit comments