1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[LibFuzzer] Disable compiling and running the LibFuzzer dataflow sanitizer tests on Apple platforms.

This fixes a broken part of the build on OSX as the dataflow sanitizer is not supported
on OSX yet.

Differential Revision: http://reviews.llvm.org/D20894

llvm-svn: 271492
This commit is contained in:
Dan Liew 2016-06-02 05:48:09 +00:00
parent 8b5c81728c
commit f8604e4ad4
4 changed files with 19 additions and 1 deletions

View File

@ -126,7 +126,17 @@ set_target_properties(LLVMFuzzer-Unittest
###############################################################################
include_directories(..)
add_subdirectory(dfsan)
if(APPLE)
message(WARNING "Dataflow sanitizer is not supported on Apple platforms."
" Building and running LibFuzzer dataflow sanitizer tests is disabled."
)
set(HAS_DFSAN 0)
else()
set(HAS_DFSAN 1)
add_subdirectory(dfsan)
endif()
add_subdirectory(uninstrumented)
add_subdirectory(ubsan)
add_subdirectory(trace-bb)

View File

@ -1,3 +1,4 @@
REQUIRES: dfsan
CHECK1: BINGO
CHECK2: BINGO
CHECK3: BINGO

View File

@ -13,3 +13,9 @@ path = os.path.pathsep.join((llvm_tools_dir, config.test_exec_root,
config.environment['PATH']))
config.environment['PATH'] = path
if config.has_dfsan:
lit_config.note('dfsan feature available')
config.available_features.add('dfsan')
else:
lit_config.note('dfsan feature unavailable')

View File

@ -1,3 +1,4 @@
config.test_exec_root = "@CMAKE_CURRENT_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
config.has_dfsan = True if @HAS_DFSAN@ == 1 else False
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg")