From e57de2b2cf985757a7491ed495c0c360c87ae8e3 Mon Sep 17 00:00:00 2001 From: fsx950223 Date: Sun, 15 May 2022 20:33:49 +0800 Subject: [PATCH 1/2] remove useless code --- configure.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/configure.py b/configure.py index a08c938baa..ea9187c002 100644 --- a/configure.py +++ b/configure.py @@ -21,11 +21,6 @@ import platform import logging -try: - from packaging.version import Version -except ImportError: - from distutils.version import LooseVersion as Version - import tensorflow as tf _TFA_BAZELRC = ".bazelrc" @@ -136,11 +131,6 @@ def create_build_configuration(): write("build --strategy=Genrule=standalone") write("build -c opt") - if Version(tf.__version__) >= Version("2.9.0"): - glibcxx = '"-D_GLIBCXX_USE_CXX11_ABI=1"' - else: - glibcxx = '"-D_GLIBCXX_USE_CXX11_ABI=0"' - if is_windows(): write("build --config=windows") write("build:windows --enable_runfiles") From d9c4c4d39e0f8f0f2a4cdf9ffc2a6e9a906a3767 Mon Sep 17 00:00:00 2001 From: fsx950223 Date: Sun, 15 May 2022 20:41:03 +0800 Subject: [PATCH 2/2] remove useless code --- configure.py | 1 - 1 file changed, 1 deletion(-) diff --git a/configure.py b/configure.py index ea9187c002..5126f6d95b 100644 --- a/configure.py +++ b/configure.py @@ -145,7 +145,6 @@ def create_build_configuration(): write("build --copt=-mavx") write("build --cxxopt=-std=c++14") write("build --host_cxxopt=-std=c++14") - write("build --cxxopt=" + glibcxx) if os.getenv("TF_NEED_CUDA", "0") == "1": print("> Building GPU & CPU ops")