diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d811dc242a..2f9cd7c287 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,7 +75,7 @@ jobs: - uses: actions/checkout@v3 - name: Install dependencies - run: sudo apt-get install -y libblocksruntime-dev + run: sudo apt-get install -y libblocksruntime-dev clang-12 - name: Run sanity checks run: make EXTRA_FLAGS=-Werror checks diff --git a/src/test/Makefile b/src/test/Makefile index 6d287cb274..b3f942b41b 100644 --- a/src/test/Makefile +++ b/src/test/Makefile @@ -477,12 +477,13 @@ GTEST_DIR = ../../lib/test/gtest CC := clang-12 CXX := clang++-12 +ifneq ($(OSFAMILY), linux) ifeq ($(shell which $(CC) 2>/dev/null),) -$(info Falling back to 'clang'.) +$(info Falling back to 'clang' on Windows and OSX.) CC := clang CXX := clang++ endif - +endif #CC := gcc #CXX := g++