From: A. Unique TensorFlower Date: Thu, 5 Apr 2018 00:18:43 +0000 (-0700) Subject: Exclude some gcc options in Windows build X-Git-Tag: tflite-v0.1.7~39^2^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18862fb82f317a930a2d1cde51bca9c47924c882;p=platform%2Fupstream%2Ftensorflow.git Exclude some gcc options in Windows build PiperOrigin-RevId: 191672761 --- diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD index a936360..a8f1318 100644 --- a/tensorflow/python/BUILD +++ b/tensorflow/python/BUILD @@ -427,6 +427,7 @@ tf_cc_shared_object( "-lm", ], "//tensorflow:darwin": [], + "//tensorflow:windows": [], }), deps = [ "//tensorflow/core:framework_headers_lib", diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl index 098ae7e..fd44b0eb 100644 --- a/tensorflow/tensorflow.bzl +++ b/tensorflow/tensorflow.bzl @@ -304,6 +304,7 @@ def tf_cc_shared_object( clean_dep("//tensorflow:darwin"): [ "-Wl,-install_name,@rpath/" + name.split("/")[-1], ], + clean_dep("//tensorflow:windows"): [], "//conditions:default": [ "-Wl,-soname," + name.split("/")[-1], ], @@ -929,6 +930,7 @@ def tf_cuda_library(deps=None, cuda_deps=None, copts=tf_copts(), **kwargs): if 'linkstatic' not in kwargs or kwargs['linkstatic'] != 1: enable_text_relocation_linkopt = select({ clean_dep("//tensorflow:darwin"): [], + clean_dep("//tensorflow:windows"): [], "//conditions:default": ['-Wl,-z,notext'],}) if 'linkopts' in kwargs: kwargs['linkopts'] += enable_text_relocation_linkopt