Skip to content

Commit

Permalink
llvm: Fix configuration of the AArch64 build
Browse files Browse the repository at this point in the history
BPF bytecode is the target, it is independent of CPU architecture.
The configuration was originally overlooked in cilium#3.

Fixes: cilium#31

Signed-off-by: Ilya Dmitrichenko <[email protected]>
  • Loading branch information
errordeveloper committed Jun 8, 2020
1 parent 2bbab5f commit 068f41b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions images/llvm/build-llvm-cross-aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ CC="${triplet}-gcc" CXX="${triplet}-g++" \
-DBUILD_SHARED_LIBS="OFF" \
-DCMAKE_BUILD_TYPE="Release" \
-DLLVM_BUILD_RUNTIME="OFF" \
-DCMAKE_CROSSCOMPILING="True" \
-DLLVM_TABLEGEN="/src/llvm/llvm/build-native/bin/llvm-tblgen" \
-DCLANG_TABLEGEN="/src/llvm/llvm/build-native/bin/clang-tblgen" \
-DLLVM_TARGET_ARCH="AArch64" \
-DLLVM_TARGETS_TO_BUILD="AArch64" \
-DLLVM_DEFAULT_TARGET_TRIPLE="${triplet}"
-DCMAKE_CROSSCOMPILING="True"

ninja clang llc

Expand Down

0 comments on commit 068f41b

Please sign in to comment.