How to migrate old llvm Makefiles of individual components to the new Mono repo llvm


I am trying to migrate custom changes done to libcxxabi and libcxx from old llvm sources (2016 llvm codebase) to newer llvm version (llvm 14).

I no longer see Makefile in libcxx/src and libcxxabi/src in the new llvm codebase.

Is there any document to help move the code from old llvm code base to new llvm code base?

Thanks a lot!!

LLVM’s build system changed from autoconf to CMake many years ago. I couldn’t find specific documentation around the migration, but Building LLVM with CMake — LLVM 17.0.0git documentation is a general overview of LLVM’s CMake build system. libcxx/src/CMakeLists.txt and libcxxabi/src/CMakeLists.txt should be equivalent to the Makefiles you’re describing (I think … I never worked with the old build system so I can’t say for sure), and you’ll have to translate your changes to CMake.

1 Like

Thank you Shoaib Meenai!!

1 Like