Updated build instructions on macos

This commit is contained in:
Bartek Kryza
2022-03-07 23:20:19 +01:00
parent b4d691539c
commit 5667e1553d
3 changed files with 7 additions and 1 deletions

View File

@@ -18,7 +18,9 @@ set(UML_HEADERS_DIR ${PROJECT_SOURCE_DIR}/src/uml)
option(LLVM_CONFIG_PATH "Path to custom llvm-config executable")
if(LLVM_CONFIG_PATH)
message(STATUS "Using llvm-config from ${LLVM_CONFIG_PATH}")
set(LIBCLANG_LLVM_CONFIG_EXECUTABLE ${LLVM_CONFIG_PATH})
set(LLVM_CONFIG_BINARY ${LLVM_CONFIG_PATH})
endif(LLVM_CONFIG_PATH)
message(STATUS "Checking for fmt...")

View File

@@ -52,6 +52,10 @@ release/clang-uml --help
# To build using a specific installed version of LLVM use:
LLVM_CONFIG_PATH=/usr/bin/llvm-config-13 make release
# To build on macos, it is necessary to provide also path to LLVM cmake directory, e.g.:
export LLVM_PREFIX="/usr/local/Cellar/llvm@12/12.0.1_1"
LLVM_CONFIG_PATH="${LLVM_PREFIX}/bin/llvm-config" CMAKE_PREFIX_PATH="${LLVM_PREFIX}/lib/cmake/llvm/" make test
# Optionally
make install
# or

View File

@@ -40,7 +40,7 @@ public:
package(const package &) = delete;
package(package &&) = default;
package &operator=(const package &) = delete;
package &operator=(package &&) = default;
package &operator=(package &&) = delete;
std::string full_name(bool relative) const override;