#!/usr/bin/bash
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Verify that the cxx-generated C++ code is in sync
set -xeuo pipefail
dn=$(dirname $0)
$dn/install-cxx.sh
make -f Makefile.bindings
if ! git diff; then
    echo "Found diff in cxx-generated code; please run: make -f Makefile.bindings" 1>&2
    exit 1
fi
echo "ok: cxx generated code matches"
