Skip to content

Commit

Permalink
Update build. Move copts to bazelrc rather than on individual libraries
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 272778672
  • Loading branch information
broken committed Oct 5, 2019
1 parent f653236 commit 98b34b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions oss_scripts/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ else
pip install tensorflow==1.14.0
fi

osname="$(uname -s)"
if [[ $osname == "Linux" ]]; then
write_to_bazelrc "build --cxxopt='-std=c++11'"
fi

TF_CFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') )
TF_LFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))') )
TF_LFLAGS2=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))' | awk '{print $2}') )
Expand Down
6 changes: 0 additions & 6 deletions tensorflow_text/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ cc_binary(
],
copts = [
"-pthread",
"-std=c++11",
],
linkshared = 1,
deps = [
Expand Down Expand Up @@ -118,7 +117,6 @@ cc_binary(
],
copts = [
"-pthread",
"-std=c++11",
],
linkshared = 1,
deps = [
Expand Down Expand Up @@ -234,7 +232,6 @@ cc_binary(
],
copts = [
"-pthread",
"-std=c++11",
],
linkshared = 1,
deps = [
Expand Down Expand Up @@ -338,7 +335,6 @@ cc_binary(
],
copts = [
"-pthread",
"-std=c++11",
],
linkshared = 1,
deps = [
Expand Down Expand Up @@ -417,7 +413,6 @@ cc_binary(
],
copts = [
"-pthread",
"-std=c++11",
],
linkshared = 1,
deps = [
Expand Down Expand Up @@ -461,7 +456,6 @@ cc_binary(
],
copts = [
"-pthread",
"-std=c++11",
],
linkshared = 1,
deps = [
Expand Down
1 change: 0 additions & 1 deletion third_party/icu/data/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ exports_files(["LICENSE"])
cc_library(
name = "icu_normalization_data",
srcs = ["normalization_data.c"],
copts = ["-std=c++11"],
deps = ["@icu//:headers"],
)

0 comments on commit 98b34b0

Please sign in to comment.