compnerd added a comment. Which version of the patch did you use? L13 in the current version sets `LLVM_MAIN_INCLUDE_DIR` specifically for that case. Repository: rLLD LLVM Linker CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57406/new/ https://reviews.llvm.org/D57406