Skip to content

Commit 7fef2f5

Browse files
committed
[bpf] enable BPF backend in autoconf build
llvm-svn: 239425
1 parent 5615c66 commit 7fef2f5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

llvm/autoconf/configure.ac

+3-2
Original file line numberDiff line numberDiff line change
@@ -1097,15 +1097,15 @@ if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
10971097
fi
10981098

10991099
dnl List all possible targets
1100-
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
1100+
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600 BPF"
11011101
AC_SUBST(ALL_TARGETS,$ALL_TARGETS)
11021102

11031103
dnl Allow specific targets to be specified for building (or not)
11041104
TARGETS_TO_BUILD=""
11051105
AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets],
11061106
[Build specific host targets: all or target1,target2,... Valid targets are:
11071107
host, x86, x86_64, sparc, powerpc, arm64, arm, aarch64, mips, hexagon,
1108-
xcore, msp430, nvptx, systemz, r600, and cpp (default=all)]),,
1108+
xcore, msp430, nvptx, systemz, r600, bpf, and cpp (default=all)]),,
11091109
enableval=all)
11101110
if test "$enableval" = host-only ; then
11111111
enableval=host
@@ -1121,6 +1121,7 @@ case "$enableval" in
11211121
aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
11221122
arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
11231123
arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
1124+
bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
11241125
mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
11251126
mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
11261127
mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;

llvm/configure

+4-3
Original file line numberDiff line numberDiff line change
@@ -1462,8 +1462,8 @@ Optional Features:
14621462
--enable-targets Build specific host targets: all or
14631463
target1,target2,... Valid targets are: host, x86,
14641464
x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465-
hexagon, xcore, msp430, nvptx, systemz, r600, and
1466-
cpp (default=all)
1465+
hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1466+
and cpp (default=all)
14671467
--enable-experimental-targets
14681468
Build experimental host targets: disable or
14691469
target1,target2,... (default=disable)
@@ -5628,7 +5628,7 @@ _ACEOF
56285628

56295629
fi
56305630

5631-
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5631+
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600 BPF"
56325632
ALL_TARGETS=$ALL_TARGETS
56335633

56345634

@@ -5654,6 +5654,7 @@ case "$enableval" in
56545654
aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
56555655
arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
56565656
arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657+
bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
56575658
mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
56585659
mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
56595660
mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;

0 commit comments

Comments
 (0)