CXXFLAGS_$(d) += \
    -I$(SOURCE_ROOT)/extern/boostorg/json/include \
    -DBOOST_JSON_STANDALONE \
    -Wno-cast-align \
    -Wno-float-equal \
    -Wno-newline-eof \
    -Wno-old-style-cast \
    -Wno-sign-conversion \
    -Wno-undef

CXXFLAGS_$(d) += \
    -isystem $(SOURCE_ROOT)/extern/boostorg/json/include \
    -DBOOST_JSON_STANDALONE

# On macOS, Boost warns (via #warning) that <memory_resource> does not exist. This is then promoted
# to an error due to -Werror; set -Wno-error for macOS only.
ifeq ($(SYSTEM), MACOS)
    CXXFLAGS_$(d) += -Wno-error
endif

Fix benchmarks compilation on macOS
Fix benchmarks compilation on macOS

Disable warnings in Boost.JSON by including it with -isystem. On macOS,
several more warnings were raised due to -pedantic. Also need to set
-Wno-error because Boost.JSON raises a warning with #warning, which is
not disabled via -isystem.
