Update AOT doc and CMakeLists.txt on Android (#3471)
The library needs to be linked statically, and `DyLIB` needs to be added
to `IREE_HAL_DRIVERS_TO_BUILD`.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d5a461..d12969b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,8 +95,7 @@
set( IREE_HAL_DRIVERS_TO_BUILD ${IREE_ALL_HAL_DRIVERS} )
# For cross compilation towords Android, we don't want LLVM JIT HAL driver.
if(ANDROID)
- # TODO(ataei): Enable dylib/dylib-llvm-aot for android.
- list(REMOVE_ITEM IREE_HAL_DRIVERS_TO_BUILD LLVM DyLib)
+ list(REMOVE_ITEM IREE_HAL_DRIVERS_TO_BUILD LLVM)
endif()
# For Apple platforms we need to use Metal instead of Vulkan.