Skip to content

Commit

Permalink
PHP build scripts: Fix always using Clang for Soup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Aug 30, 2024
1 parent 2335598 commit f300a6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

function build_soup()
{
global $argv;

echo ">>> Building Soup\n";
passthru("php ".__DIR__."/../src/vendor/Soup/build_lib.php");
passthru("php ".__DIR__."/../src/vendor/Soup/build_lib.php "..escapeshellarg($argv[1]));
echo ">>> Compiling Pluto\n";
}

Expand Down
3 changes: 2 additions & 1 deletion src/vendor/Soup/build_common.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
// Config
$clang = "clang -std=c++17 -fno-rtti -DSOUP_USE_INTRIN -O3";
$clang = $argv[1] ?? "clang";
$clang .= " -std=c++17 -fno-rtti -DSOUP_USE_INTRIN -O3";
if (defined("PHP_WINDOWS_VERSION_MAJOR"))
{
$clang .= " -D_CRT_SECURE_NO_WARNINGS";
Expand Down

0 comments on commit f300a6c

Please sign in to comment.