1
0
Fork 0

Merge pull request #9702 from brandonkelly/sodium

Check if SODIUM_LIBRARY_VERSION is defined
pull/9706/head
Jordi Boggiano 2021-02-17 22:52:47 +01:00 committed by GitHub
commit 6f392ae198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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':