endif()
endif()
- setup_dependency_debugging(${name} ${LLVM_COMMON_DEPENDS})
-
# Generate objlib
if((ARG_SHARED AND ARG_STATIC) OR ARG_OBJECT)
# Generate an obj library for both targets.
add_library(${name} STATIC ${ALL_FILES})
endif()
+ setup_dependency_debugging(${name} ${LLVM_COMMON_DEPENDS})
+
if(DEFINED windows_resource_file)
set_windows_version_resource_properties(${name} ${windows_resource_file})
set(windows_resource_file ${windows_resource_file} PARENT_SCOPE)
# it forces Xcode to properly link the static library.
list(APPEND ALL_FILES "${LLVM_MAIN_SRC_DIR}/cmake/dummy.cpp")
endif()
-
- setup_dependency_debugging(${name} ${LLVM_COMMON_DEPENDS})
if( EXCLUDE_FROM_ALL )
add_executable(${name} EXCLUDE_FROM_ALL ${ALL_FILES})
add_executable(${name} ${ALL_FILES})
endif()
+ setup_dependency_debugging(${name} ${LLVM_COMMON_DEPENDS})
+
if(NOT ARG_NO_INSTALL_RPATH)
llvm_setup_rpath(${name})
endif()
set(deny_intrinsics_gen "(deny file* (literal \"${LLVM_BINARY_DIR}/include/llvm/IR/Intrinsics.gen\"))")
set(sandbox_command "sandbox-exec -p '(version 1) (allow default) ${deny_attributes_gen} ${deny_intrinsics_gen}'")
- set_property(DIRECTORY PROPERTY RULE_LAUNCH_COMPILE ${sandbox_command})
+ set_target_properties(${name} PROPERTIES RULE_LAUNCH_COMPILE ${sandbox_command})
endfunction()