[PATCH] D14604: [tsan] Filter OS X architectures for unit testing
Alexander Potapenko via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 02:43:42 PST 2015
glider added inline comments.
================
Comment at: lib/tsan/tests/CMakeLists.txt:38
@@ +37,3 @@
+ if(APPLE)
+ darwin_filter_host_archs(TSAN_SUPPORTED_ARCH TSAN_TEST_ARCH)
+ endif()
----------------
kubabrecka wrote:
> glider wrote:
> > I'm not familiar with CMake infrastructure enough but I think darwin_filter_host_archs isn't the right way to say "remove ARM64 from the list".
> > Can we just explicitly set TSAN_TEST_ARCH to x86_64 on Darwin?
> `darwin_filter_host_archs` is already used for this purpose in `asan/tests/` and `sanitizer_common/tests/`. It's actually doing a little more work, namely keeping both x86_64 and x86_64h in case your system is a Haswell+ machine.
>
> But I'm actually completely fine with just doing `set(TSAN_TEST_ARCH x86_64)` here, if you still want me to.
Sorry, I cannot comment on whether we want x86_64h or not.
Does that mean that we'll be running the tests twice on the Haswell+ machines?
I think it's good to be consistent with the rest of compiler-rt, but I don't understand why this is done there in the first place.
If you know this is needed, I'm fine with keeping darwin_filter_host_archs
http://reviews.llvm.org/D14604
More information about the llvm-commits
mailing list