Skip to content

Commit 918021e

Browse files
remove NEED_LIBC_HDRGEN from libc/CMakeLists.txt
1 parent a4d7f4c commit 918021e

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

libc/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -60,27 +60,6 @@ if(LIBC_BUILD_GPU_LOADER OR (LLVM_LIBC_GPU_BUILD AND NOT LLVM_RUNTIMES_BUILD))
6060
add_subdirectory(utils/gpu)
6161
endif()
6262

63-
set(NEED_LIBC_HDRGEN FALSE)
64-
if(NOT LLVM_RUNTIMES_BUILD)
65-
if("libc" IN_LIST LLVM_ENABLE_RUNTIMES)
66-
set(NEED_LIBC_HDRGEN TRUE)
67-
else()
68-
foreach(_name ${LLVM_RUNTIME_TARGETS})
69-
if("libc" IN_LIST RUNTIMES_${_name}_LLVM_ENABLE_RUNTIMES)
70-
set(NEED_LIBC_HDRGEN TRUE)
71-
break()
72-
endif()
73-
endforeach()
74-
endif()
75-
endif()
76-
if(NEED_LIBC_HDRGEN)
77-
# When libc is build as part of the runtimes/bootstrap build's CMake run, we
78-
# only need to build the host tools to build the libc. So, we just do enough
79-
# to build libc-hdrgen and return.
80-
return()
81-
endif()
82-
unset(NEED_LIBC_HDRGEN)
83-
8463
option(LIBC_CMAKE_VERBOSE_LOGGING
8564
"Log details warnings and notifications during CMake configuration." OFF)
8665

0 commit comments

Comments
 (0)