Skip to content

Commit 8c18cbf

Browse files
committed
Revert "[libc++] Remap headers in the debug info when building the library (llvm#143004)"
This reverts commit 4d50b40. There is a discussion on this issue on [1] I have discussed this on PR and also with developer on IRC, I am hoping that our position will be considered by 22.x release [1] llvm#143004 Upstream-Status: Inappropriate [ OE-Specific ] Signed-off-by: Khem Raj <[email protected]>
1 parent 7c25b07 commit 8c18cbf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libcxx/include/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,11 +1722,6 @@ add_dependencies(cxx-headers generate-cxx-headers)
17221722
target_include_directories(cxx-headers INTERFACE ${LIBCXX_GENERATED_INCLUDE_TARGET_DIR}
17231723
${LIBCXX_GENERATED_INCLUDE_DIR})
17241724

1725-
# Make sure to map the generated include directory back to libc++'s actual source directory when generating
1726-
# debug information. Otherwise, the debug information will refer to generated headers which are created during
1727-
# the build and generally not persistent.
1728-
target_add_compile_flags_if_supported(cxx-headers INTERFACE "-fdebug-prefix-map=${LIBCXX_GENERATED_INCLUDE_DIR}=${LIBCXX_SOURCE_DIR}/include")
1729-
17301725
if (LIBCXX_INSTALL_HEADERS)
17311726
foreach(file ${files})
17321727
get_filename_component(dir ${file} DIRECTORY)

0 commit comments

Comments
 (0)