From f6fe902c766421cc84ff56dc2ed3799afc2a3e70 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 3 Nov 2024 12:37:57 +0800 Subject: [PATCH] Fix sodium build, remove build patches --- src/SPC/builder/extension/sodium.php | 35 ---------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/SPC/builder/extension/sodium.php diff --git a/src/SPC/builder/extension/sodium.php b/src/SPC/builder/extension/sodium.php deleted file mode 100644 index 18059774..00000000 --- a/src/SPC/builder/extension/sodium.php +++ /dev/null @@ -1,35 +0,0 @@ -removeLineContainingString(); - } - - private function removeLineContainingString(): bool - { - $path = SOURCE_PATH . '/php-src/ext/sodium/config.m4'; - $search = '-Wno-logical-op'; - if (!file_exists($path)) { - return false; - } - $content = file_get_contents($path); - $lines = preg_split('/\r\n|\n/', $content); - $filteredLines = array_filter($lines, function ($line) use ($search) { - return strpos($line, $search) === false; - }); - $newContent = implode("\n", $filteredLines); - file_put_contents($path, $newContent); - return true; - } -}