Skip to content

Commit 863625b

Browse files
authored
remove useless code (#2700)
* remove useless code * remove useless code
1 parent c0a6c63 commit 863625b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

configure.py

-11
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
import platform
2222
import logging
2323

24-
try:
25-
from packaging.version import Version
26-
except ImportError:
27-
from distutils.version import LooseVersion as Version
28-
2924
import tensorflow as tf
3025

3126
_TFA_BAZELRC = ".bazelrc"
@@ -136,11 +131,6 @@ def create_build_configuration():
136131
write("build --strategy=Genrule=standalone")
137132
write("build -c opt")
138133

139-
if Version(tf.__version__) >= Version("2.9.0"):
140-
glibcxx = '"-D_GLIBCXX_USE_CXX11_ABI=1"'
141-
else:
142-
glibcxx = '"-D_GLIBCXX_USE_CXX11_ABI=0"'
143-
144134
if is_windows():
145135
write("build --config=windows")
146136
write("build:windows --enable_runfiles")
@@ -155,7 +145,6 @@ def create_build_configuration():
155145
write("build --copt=-mavx")
156146
write("build --cxxopt=-std=c++14")
157147
write("build --host_cxxopt=-std=c++14")
158-
write("build --cxxopt=" + glibcxx)
159148

160149
if os.getenv("TF_NEED_CUDA", "0") == "1":
161150
print("> Building GPU & CPU ops")

0 commit comments

Comments
 (0)