Skip to content

Commit

Permalink
docs: update MacOS build instructions (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sublimator authored Feb 27, 2025
1 parent 2140140 commit 51df413
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions infrastructure/building-xahau/mac-os-13.5.2.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
# Mac OS - 15.0.1

| Dependency | Working Version |
| ----------- | --------------- |
| Apple Clang | 14.3.1 |
| LLVM | 14 |
| LLD | 14 |
| Boost | 1.86.0 |
| CMake | 3.23.1 |
| Protobuf | 3.20.0 |
| WasmEdge | 0.11.2 |
| Dependency | Working Versions |
|-------------|------------------|
| Apple Clang | 14.3.1, 16.0.0 |
| LLVM | 14 |
| LLD | 14 |
| Boost | 1.86.0 |
| CMake | 3.23.1 |
| Protobuf | 3.20.0 |
| WasmEdge | 0.11.2 |

### Using Clang 16.0.0

The XCode that matches MacOS Sequoia 15.3 bundles Clang 16.0.0. It has a performance regression
when instantiating templates from large enum ranges.

If you experience any hanging compiles, make sure you to merge the following PR:
https://github.com/Xahau/xahaud/pull/436

### Force Apple Clang 14.3.1

Expand Down Expand Up @@ -112,11 +120,17 @@ make -j$(sysctl -n hw.logicalcpu) && \
sudo make install
```
{% hint style="info" %}
Note that it's currently necessary to remove any homebrew installations of protobuf otherwise
cmake will mix up both installations. There would of course be better workarounds for this,
but simply removing the homebrew installations is a quick fix.
{% endhint %}
Install Boost
```
cd $DEP_DIR && \
wget https://boostorg.jfrog.io/artifactory/main/release/$BOOST_VERSION/source/$BOOST_FOLDER_NAME.tar.gz && \
wget https://archives.boost.io/release/$BOOST_VERSION/source/$BOOST_FOLDER_NAME.tar.gz && \
tar -xvzf $BOOST_FOLDER_NAME.tar.gz && \
cd $BOOST_FOLDER_NAME && \
./bootstrap.sh && \
Expand All @@ -130,6 +144,8 @@ cd $DEP_DIR && \
wget -nc -q https://github.com/WasmEdge/WasmEdge/archive/refs/tags/$WASMEDGE_VERSION.zip && \
unzip -o $WASMEDGE_VERSION.zip && \
cd WasmEdge-$WASMEDGE_VERSION && \
sed -i '' \
's|https://boostorg\.jfrog\.io/artifactory/main/release/|https://archives.boost.io/release/|g' CMakeLists.txt && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release \
Expand Down

0 comments on commit 51df413

Please sign in to comment.