blob: 39498c439d47c3726be1243cb8987f9546965dde [file] [log] [blame]
From 6515d9951bb68a7028e56e37ea6255a940c7ebf2 Mon Sep 17 00:00:00 2001
From: Robin Sommer <robin@icir.org>
Date: Sun, 15 Jun 2014 20:02:25 -0700
Subject: [PATCH] Disable iossim build to fix linker errors.
When attempting to build the address sanitizer for the iOS simulator,
we run into an architecture mismatch between dependent shared
libraries, such as libc++.dylib.
Disabling the iOS simulator build fixes the issue.
---
CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b52403..3571aa1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -341,7 +341,9 @@ if(APPLE)
MACOSX_VERSION_MIN_FLAG "${CMAKE_CXX_FLAGS}")
set(SANITIZER_COMMON_SUPPORTED_DARWIN_OS osx)
if (IOSSIM_SDK_DIR AND NOT MACOSX_VERSION_MIN_FLAG)
- list(APPEND SANITIZER_COMMON_SUPPORTED_DARWIN_OS iossim)
+ # Disable iOS Simulator build because it clashes with the architecture of
+ # dependent libraries, such libc++abi and libc++.
+ # list(APPEND SANITIZER_COMMON_SUPPORTED_DARWIN_OS iossim)
endif()
if(COMPILER_RT_USES_LIBCXX)
--
1.9.3