From 068f41b59e897fb614339bb98484d883540998c7 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Mon, 8 Jun 2020 16:07:34 +0100 Subject: [PATCH] llvm: Fix configuration of the AArch64 build BPF bytecode is the target, it is independent of CPU architecture. The configuration was originally overlooked in #3. Fixes: #31 Signed-off-by: Ilya Dmitrichenko --- images/llvm/build-llvm-cross-aarch64.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/images/llvm/build-llvm-cross-aarch64.sh b/images/llvm/build-llvm-cross-aarch64.sh index 18acafbf..623e8ed5 100755 --- a/images/llvm/build-llvm-cross-aarch64.sh +++ b/images/llvm/build-llvm-cross-aarch64.sh @@ -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