Fix libuuid random bug when make clean (#364)

* fix libuuid random bug when `make clean`

* test

* test [skip ci]
This commit is contained in:
Jerry Ma 2024-03-01 21:27:51 +08:00 committed by GitHub
parent f5d1df5407
commit d4c0290195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,9 +6,16 @@ namespace SPC\builder\unix\library;
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
use SPC\store\FileSystem;
trait libuuid
{
public function patchBeforeBuild(): bool
{
FileSystem::replaceFileStr($this->source_dir . '/configure', '-${am__api_version}', '');
return true;
}
/**
* @throws FileSystemException
* @throws RuntimeException