LOCAL_MULTILIB

LOCAL_MULTILIB 可以指定特定模块编译32bit或64bit或都编译。

其值可选择:

  • “both”: build both 32-bit and 64-bit.
  • “32”: build only 32-bit.
  • “64”: build only 64-bit.
  • “first”: build for only the first arch (32-bit in 32-bit devices and 64-bit in 64-bit devices).
  • “”: the default; the build system decides what arch to build based on the module class and other LOCAL_ variables, such as LOCAL_MODULE_TARGET_ARCH, LOCAL_32_BIT_ONLY, etc.

Android.mk支持通过下面变量配置仅编译32位。
LOCAL_32_BIT_ONLY := true
或者使用下面配置
TARGET_PREFER_32_BIT := true

赞(7)
未经允许不得转载:极客笔记 » LOCAL_MULTILIB

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址