================
@@ -210,6 +210,7 @@ Clang. Then we build the ``ALL`` target with ninja:
 ::
 
   $ cmake -B /path/to/llvm-build -G Ninja \
+          -DCMAKE_BUILD_TYPE=[<build type>] \
           -DLLVM_ENABLE_PROJECTS=clang \
           [<more cmake options>] /path/to/llvm-project/llvm
----------------
chelcassanova wrote:

I was able to configure and build LLVM using the options in the docs (and the 
build type). I wasn't able to build LLDB though, couldn't even configure it:

```
CMake Error at cmake/modules/LLDBStandalone.cmake:10 (find_package):
  Could not find a package configuration file provided by "LLVM" with any of
  the following names:

    LLVMConfig.cmake
    llvm-config.cmake

  Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
  "LLVM_DIR" to a directory containing one of the above files.  If "LLVM"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:35 (include)
```

using the options as presented in the docs:
```
xcrun cmake -B build-lldb-standalone/ -G Ninja \
      -DLLVM_DIR=llvm-build/lib/cmake/llvm/ \
      llvm-project/lldb
```

Not sure what's happening there (the file it's complaining about exists at the 
path I pass in), but this is possibly beyond the scope of this PR?

https://github.com/llvm/llvm-project/pull/137383
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to