[lldb] Build libcxx unique_ptr and shared_ptr test programs with -glldb.
authorJorge Gorbe Moya <jgorbe@google.com>
Mon, 17 Apr 2023 23:35:21 +0000 (16:35 -0700)
committerJorge Gorbe Moya <jgorbe@google.com>
Tue, 18 Apr 2023 00:03:29 +0000 (17:03 -0700)
The functionality added by https://reviews.llvm.org/D145803 is gated by
lldb tuning, so we need to build the test programs with `-glldb` to make
these tests print the expected preferred name.

Differential Revision: https://reviews.llvm.org/D148582

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/shared_ptr/Makefile
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/unique_ptr/Makefile

index 7e57f13..c1c8b4a 100644 (file)
@@ -2,5 +2,7 @@ CXX_SOURCES := main.cpp
 
 USE_LIBCPP := 1
 
-CXXFLAGS_EXTRAS := -std=c++14
+# We need debug info tuning for lldb in order to emit the preferred name for
+# std::string. See https://reviews.llvm.org/D145803.
+CXXFLAGS_EXTRAS := -std=c++14 -glldb
 include Makefile.rules
index 7e57f13..c1c8b4a 100644 (file)
@@ -2,5 +2,7 @@ CXX_SOURCES := main.cpp
 
 USE_LIBCPP := 1
 
-CXXFLAGS_EXTRAS := -std=c++14
+# We need debug info tuning for lldb in order to emit the preferred name for
+# std::string. See https://reviews.llvm.org/D145803.
+CXXFLAGS_EXTRAS := -std=c++14 -glldb
 include Makefile.rules