From 19951d9a346877d2350c1f4f7b93a4d532f3bb27 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 16 May 2024 17:06:16 -0400 Subject: [PATCH] Update .codeql-prebuild-cpp-macOS.sh --- .codeql-prebuild-cpp-macOS.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.codeql-prebuild-cpp-macOS.sh b/.codeql-prebuild-cpp-macOS.sh index 9a5f596..964105c 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 -DCMAKE_BUILD_TYPE:STRING=Debug -G Ninja .. +ninja # skip autobuild echo "skip_autobuild=true" >> "$GITHUB_OUTPUT"