Skip to content

Commit

Permalink
remove block from b348126
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdesaulniers committed Dec 4, 2024
1 parent 20a0066 commit 7da006b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions llvm/cmake/modules/CrossCompile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,8 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype)
"-DLLVM_EXTERNAL_${name}_SOURCE_DIR=${LLVM_EXTERNAL_${name}_SOURCE_DIR}")
endforeach()

if("libc" IN_LIST LLVM_ENABLE_PROJECTS)
set(libc_flags -DLLVM_LIBC_FULL_BUILD=ON)
if(MSVC)
# Due to some issues mentioned in llvm/projects/CMakeLists.txt, libc build is disabled by
# default in the cross target when building with MSVC compatible compilers on Windows. Add
# LLVM_FORCE_BUILD_RUNTIME to bypass this issue and force its building on Windows.
list(APPEND libc_flags -DLLVM_FORCE_BUILD_RUNTIME=ON)
endif()
endif()
if(LLVM_LIBC_GPU_BUILD)
list(APPEND libc_flags -DLLVM_LIBC_GPU_BUILD=ON)
set(libc_flags -DLLVM_LIBC_GPU_BUILD=ON)
endif()

add_custom_command(OUTPUT ${${project_name}_${target_name}_BUILD}/CMakeCache.txt
Expand Down

0 comments on commit 7da006b

Please sign in to comment.