summaryrefslogtreecommitdiff
path: root/configurecompiler.cmake
diff options
context:
space:
mode:
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>2019-07-19 12:05:47 (GMT)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>2019-10-10 23:34:37 (GMT)
commit625a1492ef192853c4a1e661dbb1fee3ebce9f41 (patch)
tree00436f698a5166c62b753eb3877effcf8c2bee81 /configurecompiler.cmake
parent64e6e17d6f671149b23aa72b14fdcb6b98bec943 (diff)
downloadcoreclr-625a1492ef192853c4a1e661dbb1fee3ebce9f41.zip
coreclr-625a1492ef192853c4a1e661dbb1fee3ebce9f41.tar.gz
coreclr-625a1492ef192853c4a1e661dbb1fee3ebce9f41.tar.bz2
[Tizen] Enable Tizen ASan runtime support
Enable libasansi.so support (libasan.so with switchable interceptors). Change-Id: I9ee9b47b7beab55f036ffc0697ffab2583e9701c Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Diffstat (limited to 'configurecompiler.cmake')
-rw-r--r--configurecompiler.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake
index eb817ef..423bb40 100644
--- a/configurecompiler.cmake
+++ b/configurecompiler.cmake
@@ -300,6 +300,17 @@ elseif (CLR_CMAKE_PLATFORM_UNIX)
message(FATAL_ERROR "Unknown build type! Set CMAKE_BUILD_TYPE to DEBUG, CHECKED, RELEASE, or RELWITHDEBINFO!")
endif ()
+ if(DEFINED ENV{TIZEN_ASAN_ENVIRONMENT})
+ if (CLR_CMAKE_PLATFORM_UNIX_ARM OR CLR_CMAKE_PLATFORM_UNIX_AMD64)
+ message(STATUS "TIZEN_ASAN_ENVIRONMENT is enabled.")
+ # add definitions to enable ASan support for only external libraries (supported only Tizen)
+ add_definitions(-DTIZEN_ASAN_ENVIRONMENT -DHAS_ADDRESS_SANITIZER)
+ set(TIZEN_ASAN_ENVIRONMENT 1)
+ else()
+ message(STATUS "TIZEN_ASAN_ENVIRONMENT cannot be enabled. Current arch is not supported.")
+ endif()
+ endif()
+
# set the CLANG sanitizer flags for debug build
if(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL DEBUG OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL CHECKED)
# obtain settings from running enablesanitizers.sh