mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:17:34 +00:00
Toolchain: Fix Linux libisl
detection in BuildGDB.sh
There is no top-level `isl.h`, let's check for `isl/version.h` instead.
This commit is contained in:
parent
4ff30a7302
commit
9bceff88c8
1 changed files with 2 additions and 1 deletions
|
@ -59,8 +59,9 @@ for lib in gmp isl mpfr mpc; do
|
||||||
[ "$lib" = "mpc" ] && formula_name="libmpc" || formula_name="$lib"
|
[ "$lib" = "mpc" ] && formula_name="libmpc" || formula_name="$lib"
|
||||||
config_args+=("--with-$lib=$(brew --prefix --installed "$formula_name")") || missing_lib $lib
|
config_args+=("--with-$lib=$(brew --prefix --installed "$formula_name")") || missing_lib $lib
|
||||||
else
|
else
|
||||||
|
[ "$lib" = "isl" ] && header="isl/version.h" || header="$lib.h"
|
||||||
if ! ${CC:-cc} -I /usr/local/include -L /usr/local/lib -l$lib -o /dev/null -xc - >/dev/null <<PROGRAM
|
if ! ${CC:-cc} -I /usr/local/include -L /usr/local/lib -l$lib -o /dev/null -xc - >/dev/null <<PROGRAM
|
||||||
#include <$lib.h>
|
#include <$header>
|
||||||
int main() {}
|
int main() {}
|
||||||
PROGRAM
|
PROGRAM
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue