SIGN IN SIGN UP

Resolve `compiler_flags` to allow Mac build (#3478)

Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/3478

## `-Wglobal-constructors`

In ET-Vulkan, we use global constructors without global destructors.

Example: [`auto cls = VulkanBackend();`](https://github.com/pytorch/executorch/blob/3a253e96baa89e5a5434e91a236df63d54e0949e/backends/vulkan/runtime/VulkanBackend.cpp#L511-L513)
```
xplat/executorch/backends/vulkan/runtime/VulkanBackend.cpp:511:6: error: declaration requires a global destructor [-Werror,-Wglobal-constructors]
auto cls = VulkanBackend();
     ^
```

On Mac, this results in a `-Wglobal-constructors` warning, which is disabled in this change.

## `-Wmissing-prototypes`
## `-Wshadow`

Same as https://github.com/pytorch/pytorch/pull/125361

Reviewed By: SS-JIA

Differential Revision: D56860764

fbshipit-source-id: 5e598a3774c04e9f4b4911cc7cbda14dbe703fd8
J
Jorge Pineda committed
4bd45c39a147f88748a19028593108e93e963474
Parent: 74538f8
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 5/2/2024, 10:36:28 PM