[libc-commits] [libc] 504d8d9 - [libc] Fixing the build command for benchmarks.

Anthony Steinhauser via libc-commits libc-commits at lists.llvm.org
Thu May 28 11:19:53 PDT 2020


Author: Anthony Steinhauser
Date: 2020-05-28T11:19:20-07:00
New Revision: 504d8d9d8a20fae1717bcf65dbc7577d0f26ffd7

URL: https://github.com/llvm/llvm-project/commit/504d8d9d8a20fae1717bcf65dbc7577d0f26ffd7
DIFF: https://github.com/llvm/llvm-project/commit/504d8d9d8a20fae1717bcf65dbc7577d0f26ffd7.diff

LOG: [libc] Fixing the build command for benchmarks.

Building libc without clang fails with:
CMake Error at /home/asteinhauser/llvm-project/libc/CMakeLists.txt:49 (message):
'clang' and 'clang-tools-extra' are required in LLVM_ENABLE_PROJECTS to
lint llvm-libc. The linting step performs important checks to help prevent
the introduction of subtle bugs, but it may increase build times.

Reviewers: sivachandra

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D80495

Added: 
    

Modified: 
    libc/utils/benchmarks/README.md

Removed: 
    


################################################################################
diff  --git a/libc/utils/benchmarks/README.md b/libc/utils/benchmarks/README.md
index fdd0223196f2..ed7d80e1c14d 100644
--- a/libc/utils/benchmarks/README.md
+++ b/libc/utils/benchmarks/README.md
@@ -35,7 +35,7 @@ informations** and **benchmarking configuration**.
 
 ```shell
 cd llvm-project
-cmake -B/tmp/build -Sllvm -DLLVM_ENABLE_PROJECTS=libc -DCMAKE_BUILD_TYPE=Release
+cmake -B/tmp/build -Sllvm -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;libc' -DCMAKE_BUILD_TYPE=Release
 make -C /tmp/build -j display-libc-memcpy-benchmark-small
 ```
 


        


More information about the libc-commits mailing list