diff --git a/.codeql-prebuild-cpp-macOS.sh b/.codeql-prebuild-cpp-macOS.sh index 9a5f596..0f1aeeb 100644 --- a/.codeql-prebuild-cpp-macOS.sh +++ b/.codeql-prebuild-cpp-macOS.sh @@ -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"