Use the make question option to avoid rebuild on macOS (#68)

There was already the earlier strange ` before the
"unity.a' is up to date message on macOS.

Turns out it might still not work on macOS because of certain
verbosity levels.

So use the question option instead of dry-run + grep as the
latter is more brittle, and the former is intended for this
purpose.
This commit is contained in:
Kim De Mey 2024-07-26 16:18:18 +02:00 committed by GitHub
parent 608d10a24e
commit 965029e395
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export ROCKSDB_DISABLE_BZIP=1
export PORTABLE=1
export DEBUG_LEVEL=0
if ${MAKE} -C "${ROCKSDB_LIB_DIR}" --dry-run unity.a | grep -q "unity.a' is up to date."; then
if ${MAKE} -C "${ROCKSDB_LIB_DIR}" -q unity.a; then
echo "RocksDb static libraries already built. Skipping build."
exit 0
else