Skip to content

Commit 3afb946

Browse files
committed
Use default c++ headers with brew clang
1 parent c6cb41e commit 3afb946

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test_build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ jobs:
102102
echo "CC=clang" >> $GITHUB_ENV
103103
echo "CXX=clang++" >> $GITHUB_ENV
104104
echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
105+
# https://github.com/Macaulay2/M2/issues/3967
106+
# maybe remove after some future llvm release?
107+
SDKROOT=$(xcrun --show-sdk-path)
108+
echo "CXXFLAGS=-nostdinc++ -isystem $SDKROOT/usr/include/c++/v1 -isystem $SDKROOT/usr/include" >> $GITHUB_ENV
105109
;;
106110
esac
107111

0 commit comments

Comments
 (0)