From f9cebd43e2e4844c16cae71f7eea181db55807d0 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Sun, 17 Sep 2023 14:12:58 +0200 Subject: [PATCH] [HIPIFY][doc] Added `-DLLVM_INCLUDE_TESTS=OFF` to LLVM build command lines [Reasons] + No need for any LLVM tests for hipify-clang building or testing + Reduce build time and avoid possible issues with tests --- docs/hipify-clang.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/hipify-clang.md b/docs/hipify-clang.md index ca59c8e6..235725ec 100644 --- a/docs/hipify-clang.md +++ b/docs/hipify-clang.md @@ -268,6 +268,7 @@ The binary can then be found at `./dist/hipify-clang` or at the folder specified -DCMAKE_INSTALL_PREFIX=../dist \ -DLLVM_SOURCE_DIR=../llvm \ -DLLVM_TARGETS_TO_BUILD="X86;NVPTX" \ + -DLLVM_INCLUDE_TESTS=OFF \ -DCMAKE_BUILD_TYPE=Release \ ../llvm make -j install @@ -281,6 +282,7 @@ The binary can then be found at `./dist/hipify-clang` or at the folder specified -DCMAKE_INSTALL_PREFIX=../dist \ -DLLVM_SOURCE_DIR=../llvm \ -DLLVM_TARGETS_TO_BUILD="NVPTX" \ + -DLLVM_INCLUDE_TESTS=OFF \ -DCMAKE_BUILD_TYPE=Release \ ../llvm ``` @@ -303,6 +305,7 @@ Run `Visual Studio 16 2019`, open the generated `LLVM.sln`, build all, and build -DCMAKE_INSTALL_PREFIX=../dist \ -DLLVM_TARGETS_TO_BUILD="X86;NVPTX" \ -DLLVM_ENABLE_PROJECTS="clang" \ + -DLLVM_INCLUDE_TESTS=OFF \ -DCMAKE_BUILD_TYPE=Release \ ../llvm-project/llvm make -j install @@ -316,6 +319,7 @@ Run `Visual Studio 16 2019`, open the generated `LLVM.sln`, build all, and build -DCMAKE_INSTALL_PREFIX=../dist \ -DLLVM_TARGETS_TO_BUILD="NVPTX" \ -DLLVM_ENABLE_PROJECTS="clang" \ + -DLLVM_INCLUDE_TESTS=OFF \ -DCMAKE_BUILD_TYPE=Release \ ../llvm-project/llvm ```