upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / sparse / trunk / llvm14.patch
blobc039e314652884fc105e48b96c31a3fecacffe67
1 diff --git a/Makefile b/Makefile
2 index 84b4527f..01fd2b21 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -193,7 +193,7 @@ $(warning Your system does not have gtk3/gtk2, disabling test-inspect)
6 endif
8 # Can we use LLVM (needed for ... sparse-llvm)?
9 -LLVM_CONFIG:=llvm-config
10 +LLVM_CONFIG:=llvm-config-14
11 HAVE_LLVM:=$(shell $(LLVM_CONFIG) --version >/dev/null 2>&1 && echo 'yes')
12 ifeq ($(HAVE_LLVM),yes)
13 arch := $(shell uname -m)
14 diff --git a/sparse-llvm-dis b/sparse-llvm-dis
15 index 2958217b..453fcf85 100755
16 --- a/sparse-llvm-dis
17 +++ b/sparse-llvm-dis
18 @@ -4,7 +4,7 @@
20 set +e
22 -DIS=$("${LLVM_CONFIG:-llvm-config}" --bindir)/llvm-dis
23 +DIS=$("${LLVM_CONFIG:-llvm-config-14}" --bindir)/llvm-dis
25 if [ $# -eq 0 ]; then
26 echo "$(basename $0): no input files"
27 diff --git a/sparsec b/sparsec
28 index 3f9b60c6..0d24ffe8 100755
29 --- a/sparsec
30 +++ b/sparsec
31 @@ -32,7 +32,7 @@ done
32 TMPFILE=`mktemp -t tmp.XXXXXX`
35 -LLC=`"${LLVM_CONFIG:-llvm-config}" --bindir`/llc
36 +LLC=`"${LLVM_CONFIG:-llvm-config-14}" --bindir`/llc
38 LLC_ARCH_OPTS=
39 case "$(uname -s)" in
40 diff --git a/sparsei b/sparsei
41 index 3232200e..bfd33f7e 100755
42 --- a/sparsei
43 +++ b/sparsei
44 @@ -6,7 +6,7 @@ SPARSEOPTS=
45 JIT_OPT=
47 DIRNAME=`dirname $0`
48 -LLI=`"${LLVM_CONFIG:-llvm-config}" --bindir`/lli
49 +LLI=`"${LLVM_CONFIG:-llvm-config-14}" --bindir`/lli
51 if [ $# -eq 0 ]; then
52 echo "`basename $0`: no input files"