Otherwise #include will end up including /usr/local/include/db.h
instead of the file from the sysroot. Work around this by passing the
path to db.h using a DB_H_ABS_PATH define and including that.
Also don't add -Wsystem-headers on macOS since this produces 180 -Wnullability-completeness warnings for each file and
makes it impossible to see real warnings.
Otherwise #include will end up including /usr/local/include/db.h
instead of the file from the sysroot. Work around this by passing the
path to db.h using a DB_H_ABS_PATH define and including that.
Also don't add -Wsystem-headers on macOS since this produces 180 -Wnullability-completeness warnings for each file and makes it impossible to see real warnings.
CC: @jrtc27