[libcxx-commits] [libcxx] r371130 - Don't assume libcxx_gdb is always set.

Sterling Augustine via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 5 14:34:54 PDT 2019


Author: saugustine
Date: Thu Sep  5 14:34:54 2019
New Revision: 371130

URL: http://llvm.org/viewvc/llvm-project?rev=371130&view=rev
Log:
Don't assume libcxx_gdb is always set.

libc++abi also uses this file, but doesn't use the same CMakeLists.txt.

Modified:
    libcxx/trunk/utils/libcxx/test/config.py

Modified: libcxx/trunk/utils/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/libcxx/test/config.py?rev=371130&r1=371129&r2=371130&view=diff
==============================================================================
--- libcxx/trunk/utils/libcxx/test/config.py (original)
+++ libcxx/trunk/utils/libcxx/test/config.py Thu Sep  5 14:34:54 2019
@@ -490,9 +490,10 @@ class Configuration(object):
             self.config.available_features.add('glibc-%s' % maj_v)
             self.config.available_features.add('glibc-%s.%s' % (maj_v, min_v))
 
-        if 'NOTFOUND' not in self.get_lit_conf('libcxx_gdb'):
+        libcxx_gdb = self.get_lit_conf('libcxx_gdb')
+        if libcxx_gdb and 'NOTFOUND' not in libcxx_gdb:
             self.config.available_features.add('libcxx_gdb')
-            self.cxx.libcxx_gdb = self.get_lit_conf('libcxx_gdb')
+            self.cxx.libcxx_gdb = libcxx_gdb
 
         # Support Objective-C++ only on MacOS and if the compiler supports it.
         if self.target_info.platform() == "darwin" and \




More information about the libcxx-commits mailing list