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:
Daniel Bertalan 2023-05-28 10:26:51 +02:00 committed by Tim Flynn
parent 4ff30a7302
commit 9bceff88c8
Notes: sideshowbarker 2024-07-16 23:03:06 +09:00

View file

@ -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