since we explicitly delete module folder before building, we should reintroduce this check (#783)

otherwise shared extensions that other shared extensions depend on will be built multiple times
This commit is contained in:
Marc 2025-06-20 00:27:33 +07:00 committed by GitHub
parent 8293160a01
commit 5cd987ba3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -342,6 +342,9 @@ class Extension
return;
}
}
if (file_exists(BUILD_MODULES_PATH . '/' . $this->getName() . '.so')) {
logger()->info('Shared extension [' . $this->getName() . '] was already built, skipping (' . $this->getName() . '.so)');
}
logger()->info('Building extension [' . $this->getName() . '] as shared extension (' . $this->getName() . '.so)');
foreach ($this->dependencies as $dependency) {
if (!$dependency instanceof Extension) {