reimport pr137735 due to merging check issues (#138959)

This is  a cherry-pick from #137735 by @mikaylagawarecki , that cannot be merged due to a (wrongly) failing check for codev

@diff-train-skip-merge

Pull Request resolved: https://github.com/pytorch/pytorch/pull/138959
Approved by: https://github.com/mikaylagawarecki
This commit is contained in:
Wouter Devriendt
2024-10-27 16:31:34 +00:00
committed by PyTorch MergeBot
parent 144d75d934
commit bae3426af7
10 changed files with 119 additions and 36 deletions

View File

@ -36,7 +36,7 @@ def define_targets(rules):
"caffe2/serialize/istream_adapter.cc",
"caffe2/serialize/read_adapter_interface.cc",
],
copts = ["-fexceptions"],
copts = ["-fexceptions", "-DFBCODE_CAFFE2"],
tags = [
"-fbcode",
"supermodule:android/default/pytorch",