Updated build instructions on macos
This commit is contained in:
@@ -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...")
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user