[PATCH] D16544: [libcxx] Framework to allow testing of static libc++abi

Ben Craig via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 11 13:53:54 PST 2016


bcraig added inline comments.

================
Comment at: test/libcxx/test/config.py:469
@@ +468,3 @@
+                if cxx_library_root:
+                    abs_path = cxx_library_root + "/libc++.a"
+                    self.cxx.link_flags += [abs_path]
----------------
EricWF wrote:
> Why not just wrap it in '-B,-static'?
I know exactly which binary I want to link against.  Running through the linker search path can't make this work better, but it can make it work worse.

================
Comment at: test/libcxx/test/target_info.py:173
@@ -164,2 +172,3 @@
         llvm_unwinder = self.full_config.get_lit_bool('llvm_unwinder', False)
+        shared_libcxx = self.full_config.get_lit_bool('enable_shared', False)
         flags += ['-lm']
----------------
EricWF wrote:
> Hmm... this would have a different default compared to elsewhere after my suggested edits.
When testing libcxx, it's going to be difficult to get an unset enable_shared, so the default doesn't matter that much in that situation.  It might matter more with libcxxabi.  I will investigate.

Regardless, I'm pretty sure "False" is the default here due to copy / paste rather than long, careful consideration.


http://reviews.llvm.org/D16544





More information about the cfe-commits mailing list