Skip to content

Commit

Permalink
Detect Brew path and add to system include paths
Browse files Browse the repository at this point in the history
Remove hack using `WARN_EXTRA` makefile variable to pass extra system include folder using the `-isystem` flag.
  • Loading branch information
DanRStevens committed Jul 18, 2024
1 parent 9cf6e31 commit 991d402
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 991d402

Please sign in to comment.