Skip to content

Commit

Permalink
[libc] remove references to LIBC_HDRGEN_ONLY
Browse files Browse the repository at this point in the history
Further cleanups from old hdrgen removal. I didn't realize there were cmake
variables related to old hdrgen spread out throughout more of the source tree.

Link: #117220
Link: #117208
  • Loading branch information
nickdesaulniers committed Dec 4, 2024
1 parent 8cffab8 commit 20a0066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/cmake/modules/CrossCompile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +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 AND NOT LIBC_HDRGEN_EXE)
set(libc_flags -DLLVM_LIBC_FULL_BUILD=ON -DLIBC_HDRGEN_ONLY=ON)
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
Expand Down

0 comments on commit 20a0066

Please sign in to comment.