mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
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:
committed by
PyTorch MergeBot
parent
a205f8aab4
commit
ffcbb7fd61
@@ -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.")
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user