summaryrefslogtreecommitdiffstats
path: root/llvm/cmake
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-12-08 21:51:48 +0000
committerChris Bieneman <beanz@apple.com>2015-12-08 21:51:48 +0000
commit48eaa5415184c9e1821d2290ee584ba09b2015c2 (patch)
tree0e35330f31725714cfbf0c15a7bfe0ae8ba35dd2 /llvm/cmake
parent7c005324d57ce908afb4dc01031850db70e3f4fc (diff)
downloadbcm5719-llvm-48eaa5415184c9e1821d2290ee584ba09b2015c2.tar.gz
bcm5719-llvm-48eaa5415184c9e1821d2290ee584ba09b2015c2.zip
[CMake] Ignore externalizing debuginfo for unit tests
If you externalize debug info for unit tests the test runner finds the mach-o inside the dsym bundle and tries to execute it as a test. llvm-svn: 255056
Diffstat (limited to 'llvm/cmake')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 8cc8abbbc7d..23559d604bc 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -599,7 +599,7 @@ endmacro(add_llvm_loadable_module name)
macro(add_llvm_executable name)
- cmake_parse_arguments(ARG "DISABLE_LLVM_LINK_LLVM_DYLIB" "" "" ${ARGN})
+ cmake_parse_arguments(ARG "DISABLE_LLVM_LINK_LLVM_DYLIB;IGNORE_EXTERNALIZE_DEBUGINFO" "" "" ${ARGN})
llvm_process_sources( ALL_FILES ${ARG_UNPARSED_ARGUMENTS} )
# Generate objlib
@@ -660,7 +660,9 @@ macro(add_llvm_executable name)
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
endif( LLVM_COMMON_DEPENDS )
- llvm_externalize_debuginfo(${name})
+ if(NOT ARG_IGNORE_EXTERNALIZE_DEBUGINFO)
+ llvm_externalize_debuginfo(${name})
+ endif()
endmacro(add_llvm_executable name)
function(export_executable_symbols target)
@@ -876,7 +878,7 @@ function(add_unittest test_suite test_name)
set(LLVM_REQUIRES_RTTI OFF)
- add_llvm_executable(${test_name} ${ARGN})
+ add_llvm_executable(${test_name} IGNORE_EXTERNALIZE_DEBUGINFO ${ARGN})
set(outdir ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})
set_output_directory(${test_name} BINARY_DIR ${outdir} LIBRARY_DIR ${outdir})
target_link_libraries(${test_name}
OpenPOWER on IntegriCloud