Compiling without benchmarks: still require benchmarks?

Compiling 15.0.7 is an uphill battle here. After overcoming some previous issues, I’m now stuck at cmake trying to build the ../third-party/benchmark folder despite of being explicitly told to not do it:

    CMake Error at CMakeLists.txt:1294 (add_subdirectory):
  add_subdirectory given source
  "/var/cache/omnibus/src/llvm-15.0.7.src/../third-party/benchmark" which is
  not an existing directory.

Note the -DLLVM_INCLUDE_BENCHMARKS=OFF flag at the end of the command line:

 cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DLLVM_TARGETS_TO_BUILD="X86;AArch64" -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_ENABLE_FFI=OFF -DLLVM_ENABLE_ZLIB=OFF -DLLVM_BUILD_DOCS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_BINARY_DIR=/opt/llvm -DBUILD_SHARED_LIBS=OFF -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_INCLUDE_TESTS=OFF -DLLVM_ENABLE_Z3_SOLVER=OFF -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF /var/cache/omnibus/src/llvm-15.0.7.src

I’d feed it the directory if I know where to get it from, but googling llvm "third-party/benchmark" produce no meaningful result.

Help :pray:

I’m not really sure why -DLLVM_INCLUDE_BENCHMARKS=OFF wouldn’t work, but is there any reason why you are building from the separate llvm tarball and not from the full project tarball ? I would recommend using the full project tarball. This third-party directory is in there.

fair suggestion. I continued simply by deleting the part in CMakeLists.txt relevant to the benchmarks for now, but in the future I’ll go with that. :bowing_man: