Skip to content

Commit 8281451

Browse files
authored
Update submodule sources when building driver (#1520)
* Update submodule sources when building driver * Ensure configure has correct libmongoc version information
1 parent d4170f7 commit 8281451

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.evergreen/compile-unix.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,19 @@ esac
6565
# Report the current PHP version
6666
echo "PHP: `php --version | head -n 1`"
6767

68+
# If we're testing a specific version of libmongoc, update submodule sources
69+
if [ -n "$LIBMONGOC_VERSION" ]; then
70+
php scripts/update-submodule-sources.php
71+
fi
72+
6873
phpize
6974
./configure --enable-mongodb-developer-flags
7075

71-
# If we're testing a specific version of libmongoc, regenerate the version file
76+
# configure relies on version information in libmongoc-version-current, but the target is not available until after calling configure
77+
# To work around this, run the make target, then run configure again
7278
if [ -n "$LIBMONGOC_VERSION" ]; then
7379
make libmongoc-version-current
80+
./configure --enable-mongodb-developer-flags
7481
fi
7582

7683
make test TESTS="tests/smoketest.phpt"

0 commit comments

Comments
 (0)