Bump PyTorch C standard from 11 to 17 (#170387)

Summary: Basically a no-op, but brings PyTorch OSS and internal back into sync.

Test Plan: Sandcastle

Differential Revision: D87568023

Pull Request resolved: https://github.com/pytorch/pytorch/pull/170387
Approved by: https://github.com/malfet
This commit is contained in:
Richard Barnes
2025-12-14 15:44:38 +00:00
committed by PyTorch MergeBot
parent a205f8aab4
commit ffcbb7fd61
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ set(CMAKE_CXX_STANDARD
CACHE STRING
"The C++ standard whose features are requested to build this target.")
set(CMAKE_C_STANDARD
11
17
CACHE STRING
"The C standard whose features are requested to build this target.")

View File

@@ -6,7 +6,7 @@ include(GNUInstallDirs)
include(CheckCXXCompilerFlag)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)