patch before make for uv

This commit is contained in:
DubbleClick
2025-06-20 15:25:07 +07:00
parent 625ee2703d
commit 7d45415990
2 changed files with 22 additions and 4 deletions

View File

@@ -208,6 +208,16 @@ class Extension
return false;
}
/**
* Patch code before shared extension make
* If you need to patch some code, overwrite this
* return true if you patched something, false if not
*/
public function patchBeforeSharedMake(): bool
{
return false;
}
/**
* @return string
* returns a command line string with all required shared extensions to load
@@ -408,6 +418,10 @@ class Extension
'$1 ' . $staticLibString
);
if ($this->patchBeforeSharedMake()) {
logger()->info('ext [ . ' . $this->getName() . '] patching before shared make');
}
shell()->cd($this->source_dir)
->setEnv($env)
->exec('make clean')