Skip to content

Commit

Permalink
Update .codeql-prebuild-cpp-macOS.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed May 16, 2024
1 parent e79fe11 commit d8669d7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .codeql-prebuild-cpp-macOS.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# install dependencies for C++ analysis
set -e

gcc_version=11

# install dependencies
brew install \
cmake \
gcc@${gcc_version}
ninja

# build
mkdir -p build
cd build || exit 1
cmake \
-DCMAKE_C_COMPILER="/opt/homebrew/bin/gcc-${gcc_version}" \
-DCMAKE_CXX_COMPILER="/opt/homebrew/bin/g++-${gcc_version}" \
-G "Unix Makefiles" ..
make -j"$(sysctl -n hw.logicalcpu)"
cmake -G Ninja ..
ninja

# skip autobuild
echo "skip_autobuild=true" >> "$GITHUB_OUTPUT"

0 comments on commit d8669d7

Please sign in to comment.