Skip to content

Commit

Permalink
Move bazel.rc to workspace root to support bazel-0.18.0
Browse files Browse the repository at this point in the history
Bazel 0.18.0 will contain a change for which rc files it accepts.
bazelbuild/bazel@ec83598
bazelbuild/bazel#4502

Old bazel used to read %workspace%/tools/bazel.rc. New bazel will not
read that and instead will only read %workspace%/.bazelrc.

Signed-off-by: Jason Zaman <[email protected]>
  • Loading branch information
perfinion committed Sep 28, 2018
1 parent 32627bf commit a74a321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tools/bazel.rc → .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ build:mkl -c opt

# This config option is used to enable MKL-DNN open source library only,
# without depending on MKL binary version.
build:mkl_open_source_only --define=build_with_mkl_dnn_only=true
build:mkl_open_source_only --define=build_with_mkl_dnn_only=true
build:mkl_open_source_only --define=build_with_mkl=true --define=enable_mkl=true

build:download_clang --crosstool_top=@local_config_download_clang//:toolchain
Expand Down Expand Up @@ -84,3 +84,5 @@ build:dynamic_kernels --define=dynamic_loaded_kernels=true
build --define=PREFIX=/usr
build --define=LIBDIR=$(PREFIX)/lib
build --define=INCLUDEDIR=$(PREFIX)/include

# Do not commit the tf_configure.bazelrc line
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.DS_Store
.ipynb_checkpoints
node_modules
/.bazelrc
/.tf_configure.bazelrc
/bazel-*
/bazel_pip
Expand Down

0 comments on commit a74a321

Please sign in to comment.