pytorch
3e1ac21c - [c10] move fexceptions to compiler_flags (#80387)

Commit
2 years ago
[c10] move fexceptions to compiler_flags (#80387) Summary: Move `-fexceptions` out of the exported preprocessor flags and in to the libraries compiler flags. Apply the same changes to all rdeps of this library in the caffe2 subtree. Test Plan: Verify no rdeps are missing `-fexceptions` that have cpp sources: ``` % buck uquery 'kind(cxx*, rdeps(//xplat/caffe2/..., //xplat/caffe2/c10:c10, 1))' > /tmp/rdeps % buck uquery '%Ss - attrfilter(preprocessor_flags, "-fexceptions", %Ss) - attrfilter(compiler_flags, "-fexceptions", %Ss)' @/tmp/rdeps //xplat/pytorch_models/build/pytorch_dev_mobilenetv3/v1/nnc:asm //xplat/pytorch_models/build/aot_test_model/v1/nnc:asm //xplat/pytorch_models/build/pytorch_dev_linear/v1/nnc:asm //xplat/pytorch_models/build/bi_bytedoc_nnc/v1/nnc:asm //xplat/pytorch_models/build/bi_bytedoc_nnc/v2/nnc:asm ``` Differential Revision: D37386802 Pull Request resolved: https://github.com/pytorch/pytorch/pull/80387 Approved by: https://github.com/linbinyu
Author
Committer
Parents
Loading