From ec32619cb0475016b6d3519b999461e17acdf04c Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 20 Jun 2023 12:27:12 -0700 Subject: [PATCH] Android.mk: Explicitly enable/disable LLVM support The AMD Vulkan driver uses LLVM by default, but it is possible to build the driver without the LLVM dependency. In this case, we must explicitly disable LLVM support, or else meson will die after failing to find LLVM. The Android build system already knows when to link libLLVM, so forward that information to meson. Cc: mesa-stable Acked-by: Mauro Rossi Reviewed-by: Roman Stratiienko Change-Id: I7489d3811625b390aaaf2e84e666b4a8d98328b0 Signed-off-by: Samuel Holland Part-of: --- android/mesa3d_cross.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/android/mesa3d_cross.mk b/android/mesa3d_cross.mk index d74e2c443ae..bfee1eadb2d 100644 --- a/android/mesa3d_cross.mk +++ b/android/mesa3d_cross.mk @@ -89,6 +89,7 @@ MESON_GEN_NINJA := \ -Dvulkan-drivers=$(subst $(space),$(comma),$(subst radeon,amd,$(BOARD_MESA3D_VULKAN_DRIVERS))) \ -Dgbm=enabled \ -Degl=$(if $(BOARD_MESA3D_GALLIUM_DRIVERS),enabled,disabled) \ + -Dllvm=$(if $(MESON_GEN_LLVM_STUB),enabled,disabled) \ -Dcpp_rtti=false \ -Dlmsensors=disabled \