Merge pull request #9702 from brandonkelly/sodium

Check if SODIUM_LIBRARY_VERSION is defined
main
Jordi Boggiano 3 years ago committed by GitHub
commit 6f392ae198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -402,7 +402,9 @@ class PlatformRepository extends ArrayRepository
case 'libsodium':
case 'sodium':
$this->addLibrary('libsodium', $this->runtime->getConstant('SODIUM_LIBRARY_VERSION'));
if ($this->runtime->hasConstant('SODIUM_LIBRARY_VERSION')) {
$this->addLibrary('libsodium', $this->runtime->getConstant('SODIUM_LIBRARY_VERSION'));
}
break;
case 'sqlite3':

Loading…
Cancel
Save