only pass --std=c++14 to C++ compilation actions (#73593)

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

Clang is a bit more persnickety than GCC for this flag.

Test Plan: Imported from OSS

Reviewed By: malfet

Differential Revision: D34558339

Pulled By: dagitses

fbshipit-source-id: 5b5e4e474edfb5e800e8db634327afa212d08c7e
(cherry picked from commit 02b9ffe0a26a0f0652311407f734878c6bdcc4b5)
This commit is contained in:
mikey dagitses
2022-03-02 12:27:41 -08:00
committed by PyTorch MergeBot
parent 26463aa879
commit 5dcc24963b

View File

@ -1,4 +1,4 @@
build --copt=--std=c++14
build --cxxopt=--std=c++14
build --copt=-I.
# Bazel does not support including its cc_library targets as system
# headers. We work around this for generated code