[PATCH] D63019: [GWP-ASan] Removed unittests from Android build.

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 12:18:11 PDT 2019


hctim created this revision.
hctim added a reviewer: vitalybuka.
Herald added subscribers: llvm-commits, Sanitizers, kristof.beyls, javed.absar, mgorny, kubamracek, srhines.
Herald added projects: Sanitizers, LLVM.

Longstanding issues in the Android test runner means that compiler-rt unit
tests don't work on Android due to libc++ link-time issues. Looks like the
exported libc++ from the Android NDK is x86-64, even though it's part of the
ARM[64] toolchain... See similar measures for ASan and sanitizer-common that
disable unit tests for Android.

Should fully fix the Android bots (@vlad.tsyrklevich).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63019

Files:
  compiler-rt/test/gwp_asan/CMakeLists.txt


Index: compiler-rt/test/gwp_asan/CMakeLists.txt
===================================================================
--- compiler-rt/test/gwp_asan/CMakeLists.txt
+++ compiler-rt/test/gwp_asan/CMakeLists.txt
@@ -8,7 +8,12 @@
   ${SANITIZER_COMMON_LIT_TEST_DEPS}
   gwp_asan)
 
-if (COMPILER_RT_INCLUDE_TESTS)
+# Longstanding issues in the Android test runner means that compiler-rt unit
+# tests don't work on Android due to libc++ link-time issues. Looks like the
+# exported libc++ from the Android NDK is x86-64, even though it's part of the
+# ARM[64] toolchain... See similar measures for ASan and sanitizer-common that
+# disable unit tests for Android.
+if (COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_HAS_GWP_ASAN AND NOT ANDROID)
   list(APPEND GWP_ASAN_TEST_DEPS GwpAsanUnitTests)
   configure_lit_site_cfg(
     ${CMAKE_CURRENT_SOURCE_DIR}/unit/lit.site.cfg.in


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63019.203594.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190607/1eaf3153/attachment.bin>


More information about the llvm-commits mailing list