Lines Matching +full:clang +full:- +full:ubsan
20 set(${out_var} ${CMAKE_COMMAND} --build . --target ${target}
21 --config $<CONFIG> PARENT_SCOPE)
25 set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt)
38 # Add compiler-rt as an external project.
39 set(COMPILER_RT_PREFIX ${CMAKE_BINARY_DIR}/projects/compiler-rt)
41 set(STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt-stamps/)
42 set(BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt-bins/)
44 add_custom_target(compiler-rt-clear
45 COMMAND ${CMAKE_COMMAND} -E remove_directory ${BINARY_DIR}
46 COMMAND ${CMAKE_COMMAND} -E remove_directory ${STAMP_DIR}
47 COMMENT "Clobberring compiler-rt build and stamp directories"
57 -D${variableName}=${value})
62 if(TARGET cxx-headers)
63 list(APPEND compiler_rt_configure_deps "cxx-headers")
69 ExternalProject_Add(compiler-rt
70 DEPENDS llvm-config clang ${compiler_rt_configure_deps}
76 -DCMAKE_C_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/clang
77 -DCMAKE_CXX_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/clang++
78 -DCMAKE_ASM_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/clang
79 -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
80 -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
81 -DLLVM_CONFIG_PATH=${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-config
82 -DLLVM_LIT_ARGS=${LLVM_LIT_ARGS}
83 -DCOMPILER_RT_OUTPUT_DIR=${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION}
84 -DCOMPILER_RT_EXEC_OUTPUT_DIR=${LLVM_RUNTIME_OUTPUT_INTDIR}
85 -DCOMPILER_RT_INSTALL_PATH:STRING=lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}
86 -DCOMPILER_RT_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
87 -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
88 -DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX}
89 -DLLVM_RUNTIME_OUTPUT_INTDIR=${LLVM_RUNTIME_OUTPUT_INTDIR}
90 -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}
91 -DCMAKE_OSX_SYSROOT:PATH=${CMAKE_OSX_SYSROOT}
101 ExternalProject_Add_Step(compiler-rt clean
103 COMMENT "Cleaning compiler-rt..."
106 DEPENDS clang
110 …ll(CODE "execute_process\(COMMAND \${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=\${CMAKE_INSTALL_PREFIX…
111 COMPONENT compiler-rt)
113 add_llvm_install_targets(install-compiler-rt
114 DEPENDS compiler-rt
115 COMPONENT compiler-rt)
117 # Add top-level targets that build specific compiler-rt runtimes.
118 set(COMPILER_RT_RUNTIMES fuzzer asan builtins dfsan lsan msan profile tsan ubsan ubsan-minimal)
123 DEPENDS compiler-rt-configure
129 # Add binaries that compiler-rt tests depend on.
131 FileCheck count not llvm-nm llvm-objdump llvm-symbolizer)
133 # Add top-level targets for various compiler-rt test suites.
134 set(COMPILER_RT_TEST_SUITES check-fuzzer check-asan check-hwasan check-asan-dynamic check-dfsan
135 check-lsan check-msan check-sanitizer check-tsan check-ubsan check-ubsan-minimal
136 check-profile check-cfi check-cfi-and-supported check-safestack check-gwp_asan)
141 DEPENDS compiler-rt-build ${COMPILER_RT_TEST_DEPENDENCIES}
148 # Add special target to run all compiler-rt test suites.
149 get_ext_project_build_command(run_check_compiler_rt check-all)
150 add_custom_target(check-compiler-rt
152 DEPENDS compiler-rt-build ${COMPILER_RT_TEST_DEPENDENCIES}
156 # Add special target to run all compiler-rt test suites.
157 get_ext_project_build_command(run_check_compiler_rt compiler-rt-test-depends)
158 add_custom_target(compiler-rt-test-depends
160 DEPENDS compiler-rt-build ${COMPILER_RT_TEST_DEPENDENCIES}
163 set_property(GLOBAL APPEND PROPERTY LLVM_ADDITIONAL_TEST_DEPENDS compiler-rt-test-depends)
164 set_property(GLOBAL APPEND PROPERTY LLVM_ADDITIONAL_TEST_TARGETS check-compiler-rt)