From 39cca6a90aac56e55b6697aac0a51c3c8f71ac01 Mon Sep 17 00:00:00 2001 From: royna2544 Date: Sun, 17 Nov 2024 17:27:12 +0900 Subject: [PATCH] workflow: Use clang, gcc is weird --- .github/workflows/macos_test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/macos_test.yml b/.github/workflows/macos_test.yml index 1364dc0b..8131d5e4 100644 --- a/.github/workflows/macos_test.yml +++ b/.github/workflows/macos_test.yml @@ -20,13 +20,14 @@ jobs: # https://github.com/Homebrew/homebrew-core/issues/169820#issuecomment-2080459578 - name: Set up dependencies run: | - brew install boost ninja gcc webp libpng libgit2 googletest jsoncpp openssl fmt + brew install boost ninja llvm lld webp libpng libgit2 googletest jsoncpp openssl fmt git submodule update --init + sed -i '' '/^#define _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS/d' "$(brew --prefix llvm)"/include/c++/v1/__config_site - name: Compile with Apple GCC env: - CC: /usr/local/opt/gcc/bin/gcc-14 - CXX: /usr/local/opt/gcc/bin/g++-14 + CC: /usr/local/opt/llvm/bin/clang + CXX: /usr/local/opt/llvm/bin/clang++ run: | mkdir build cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release .