Turn off fbgemm for libtorch android build (#25113)

Summary:
https://github.com/pytorch/FBGEMM (USE_FBGEMM is ON by default for x86, x86_64)

Build libtorch for android_abi x86_64 fails due to this.

Turning it off for android builds
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25113

Reviewed By: dreiss

Differential Revision: D16992459

Pulled By: IvanKobzarev

fbshipit-source-id: 3cf35a67043288cb591cc3b23c261258c28cf304
This commit is contained in:
Ivan Kobzarev 2019-08-23 12:45:51 -07:00 committed by Facebook Github Bot
parent e42b238f7f
commit 2cccad2c56

View File

@ -234,6 +234,7 @@ if (INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
set(USE_DISTRIBUTED OFF)
set(FEATURE_TORCH_MOBILE ON)
set(NO_API ON)
set(USE_FBGEMM OFF)
endif()
if (BUILD_ATEN_ONLY)