Skip to content

Commit

Permalink
use apple clang instead of brew llvm
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Mar 18, 2024
1 parent a659bd5 commit a748adc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/1_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ runs:
- name: Configure and Build
shell: bash
run: |
bash scripts/${{ runner.os }}/1_build.sh ${{ steps.envs.outputs.build_option }} ${{ inputs.build-options }} ${{ steps.envs.outputs.nightly }} --use_brew_llvm --ccache
bash scripts/${{ runner.os }}/1_build.sh ${{ steps.envs.outputs.build_option }} ${{ inputs.build-options }} ${{ steps.envs.outputs.nightly }} --ccache
2 changes: 1 addition & 1 deletion .github/workflows/BuildMeshLab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
cache-path: src/external/downloads/*
cache-key: external-libraries
build-precision: ${{matrix.precision}}
build-precision: ${{matrix.precision}}
build-options: ${{steps.envs.outputs.build_options}}
nightly: true
- name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion scripts/macOS/0_setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case $i in
esac
done

brew install coreutils node cmake ninja llvm libomp cgal xerces-c tbb embree
brew install coreutils node cmake ninja libomp cgal xerces-c tbb embree
npm install -g appdmg

if [ "$DONT_INSTALL_QT" = false ] ; then
Expand Down
12 changes: 11 additions & 1 deletion scripts/macOS/1_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,19 @@ fi

BUILD_PATH=$(realpath $BUILD_PATH)
INSTALL_PATH=$(realpath $INSTALL_PATH)
OPENMP_PATH=$(brew --prefix libomp)

cd $BUILD_PATH
export NINJA_STATUS="[%p (%f/%t) ] "
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $CCACHE $DOUBLE_PRECISION_OPTION $NIGHTLY_OPTION $SOURCE_PATH
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DOpenMP_ROOT=$OPENMP_PATH \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PATH \
$CCACHE \
$DOUBLE_PRECISION_OPTION \
$NIGHTLY_OPTION \
$SOURCE_PATH

ninja
ninja install

0 comments on commit a748adc

Please sign in to comment.