From 991d402795974cf217aad91d593b796f100a1071 Mon Sep 17 00:00:00 2001 From: Daniel Stevens Date: Thu, 18 Jul 2024 14:31:07 -0600 Subject: [PATCH] Detect Brew path and add to system include paths Remove hack using `WARN_EXTRA` makefile variable to pass extra system include folder using the `-isystem` flag. --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 546f82f9..3435e3c5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,10 +21,13 @@ jobs: xcode: "15.4.0" environment: HOMEBREW_NO_AUTO_UPDATE: 1 - WARN_EXTRA: "-isystem /opt/homebrew/include" steps: - checkout - brew-install + - run: + name: Add Brew include path to system include paths + command: | + echo "export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:$(brew --prefix)/include" >> "${BASH_ENV}" - build-and-test build-linux-gcc: docker: