[NeuralNetInference] Bring up iOS builds (#131917)

Summary: Mirror Android setup to static link & use lite interpreter on iOS

Test Plan: CI

Reviewed By: EscapeZero

Differential Revision: D60156611

Pull Request resolved: https://github.com/pytorch/pytorch/pull/131917
Approved by: https://github.com/cccclai
This commit is contained in:
Roy Berger 2024-07-30 23:01:09 +00:00 committed by PyTorch MergeBot
parent 53a5e0f1a8
commit 93facac02c

View File

@ -49,6 +49,7 @@ def define_c10_ovrsource(name, is_mobile):
"-DC10_BUILD_MAIN_LIB=1",
"-DSUPPORTS_BACKTRACE=0",
],
fbobjc_compiler_flags = ["-Wno-error=global-constructors", "-Wno-error=missing-prototypes"],
public_include_directories = [".."],
public_preprocessor_flags = pp_flags,
public_raw_headers = native.glob([