aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/cmake/tools/create_def_file.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/cmake/tools/create_def_file.py')
-rw-r--r--tensorflow/contrib/cmake/tools/create_def_file.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tensorflow/contrib/cmake/tools/create_def_file.py b/tensorflow/contrib/cmake/tools/create_def_file.py
index 53c2285699..cffe069aa3 100644
--- a/tensorflow/contrib/cmake/tools/create_def_file.py
+++ b/tensorflow/contrib/cmake/tools/create_def_file.py
@@ -63,7 +63,7 @@ INCLUDE_RE = re.compile(r"^(TF_\w*)$|"
r"^(TFE_\w*)$|"
r"tensorflow::|"
r"functor::|"
- r"nsync_|"
+ r"\?nsync_|"
r"perftools::gputools")
# We want to identify data members explicitly in the DEF file, so that no one
@@ -87,6 +87,7 @@ def get_args():
required=True)
parser.add_argument("--output", help="output deffile", required=True)
parser.add_argument("--target", help="name of the target", required=True)
+ parser.add_argument("--bitness", help="build target bitness", required=True)
args = parser.parse_args()
return args
@@ -125,7 +126,10 @@ def main():
# Header for the def file.
def_fp.write("LIBRARY " + args.target + "\n")
def_fp.write("EXPORTS\n")
- def_fp.write("\t ??1OpDef@tensorflow@@UEAA@XZ\n")
+ if args.bitness == "64":
+ def_fp.write("\t??1OpDef@tensorflow@@UEAA@XZ\n")
+ else:
+ def_fp.write("\t??1OpDef@tensorflow@@UAE@XZ\n")
# Each symbols returned by undname matches the same position in candidates.
# We compare on undname but use the decorated name from candidates.