Skip to content

Commit

Permalink
Fix xz build on macOS and Linux (#438)
Browse files Browse the repository at this point in the history
* fix xz build

* add xz tests
  • Loading branch information
crazywhalecc authored May 6, 2024
1 parent 69e6d82 commit 0fee628
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
16 changes: 0 additions & 16 deletions src/SPC/builder/macos/library/xz.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
<?php
/**
* Copyright (c) 2022 Yun Dou <dixyes@gmail.com>
*
* lwmbs is licensed under Mulan PSL v2. You can use this
* software according to the terms and conditions of the
* Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS,
* WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
*
* See the Mulan PSL v2 for more details.
*/

declare(strict_types=1);

Expand Down
1 change: 0 additions & 1 deletion src/SPC/builder/unix/library/xz.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public function build(): void
'./configure ' .
'--enable-static ' .
'--disable-shared ' .
"--host={$this->builder->getOption('gnu-arch')}-unknown-linux " .
'--disable-scripts ' .
'--disable-doc ' .
'--with-libiconv ' .
Expand Down
4 changes: 2 additions & 2 deletions src/globals/test-extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'readline',
'Linux', 'Darwin' => 'curl',
'Windows' => 'mbstring,pdo_sqlite,mbregex',
};

// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
$with_libs = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => '',
'Linux', 'Darwin' => 'xz',
'Windows' => '',
};

Expand Down

0 comments on commit 0fee628

Please sign in to comment.