Skip to content

Commit ee85a1c

Browse files
committed
ohos: make configure fail if LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is OFF
OHOS driver doesn't support old runtime libraries layout, so make cmake configure report error if LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is OFF.
1 parent 14d95fb commit ee85a1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler-rt/cmake/Modules/CompilerRTUtils.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,11 @@ function(get_compiler_rt_target arch variable)
510510
endfunction()
511511

512512
function(get_compiler_rt_install_dir arch install_dir)
513+
if (NOT LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
514+
if (LLVM_TARGET_TRIPLE MATCHES "ohos")
515+
message(FATAL_ERROR "${LLVM_TARGET_TRIPLE} requires LLVM_ENABLE_PER_TARGET_RUNTIME_DIR")
516+
endif()
517+
endif()
513518
if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE)
514519
get_compiler_rt_target(${arch} target)
515520
set(${install_dir} ${COMPILER_RT_INSTALL_LIBRARY_DIR}/${target} PARENT_SCOPE)

0 commit comments

Comments
 (0)