Skip to content

Commit 51a68a1

Browse files
committed
Revert "TensorFlow June pin update & PyTorch/XLA c++17 migration (follow up) (#3794)"
This reverts commit 6639bcc.
1 parent b8688ee commit 51a68a1

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

build_torch_xla_libs.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ if [[ ! -z "$BAZEL_JOBS" ]]; then
5454
MAX_JOBS="--jobs=$BAZEL_JOBS"
5555
fi
5656

57-
OPTS+=(--cxxopt="-std=c++17")
57+
OPTS+=(--cxxopt="-std=c++14")
5858
if [[ $(basename -- $CC) =~ ^clang ]]; then
5959
OPTS+=(--cxxopt="-Wno-c++11-narrowing")
60-
OPTS+=(--cxxopt="-Wno-c++14-narrowing")
6160
fi
6261

6362
if [[ "$XLA_CUDA" == "1" ]]; then

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def make_relative_rpath(path):
303303

304304

305305
extra_compile_args = [
306-
'-std=c++17',
306+
'-std=c++14',
307307
'-Wno-sign-compare',
308308
'-Wno-deprecated-declarations',
309309
'-Wno-return-type',

test/cpp/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ ExternalProject_Add(
4343
CMAKE_ARGS
4444
"-DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=${PT_CXX_ABI}")
4545

46-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
47-
4846
ExternalProject_Get_Property(googletest SOURCE_DIR)
4947

5048
set(TORCH_XLA_TEST_SOURCES

third_party/tensorflow

Submodule tensorflow updated 4235 files

0 commit comments

Comments
 (0)