[cpp-extensions] Ensure default extra_compile_args (#45956)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/45835
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45956
Reviewed By: ngimel
Differential Revision: D24162289
Pulled By: albanD
fbshipit-source-id: 9ba2ad51e818864f6743270212ed94d86457f4e6