diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-05-15 08:38:49 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-15 08:41:22 -0700 |
commit | 6f971fb184560ba7e5aada79e539588f73450d16 (patch) | |
tree | b609795e4542437116e23626d21a3fa7b2cbbac4 /tools | |
parent | eaa546553870c4d74d8940d7a1a9656dc5c71cc2 (diff) |
Adding --distinct_host_configuration=false in tools/bazel.rc
When building TensorFlow, the host and target platforms are usually the same. So we don't have to distinct them by default. This helps avoid building the same targets twice.
If we need to do cross compilation, add --config=cross-compile to distinct them.
PiperOrigin-RevId: 196673728
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bazel.rc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/bazel.rc b/tools/bazel.rc index 1c1e6afb65..03aa52da1f 100644 --- a/tools/bazel.rc +++ b/tools/bazel.rc @@ -1,8 +1,14 @@ +# By default, we don't distinct target and host platfroms. +# When doing cross compilation, use --config=cross_compile to distinct them. +build --distinct_host_configuration=false +build:cross_compile --distinct_host_configuration=true + # Android configs. Bazel needs to have --cpu and --fat_apk_cpu both set to the # target CPU to build transient dependencies correctly. See # https://docs.bazel.build/versions/master/user-manual.html#flag--fat_apk_cpu build:android --crosstool_top=//external:android/crosstool build:android --host_crosstool_top=@bazel_tools//tools/cpp:toolchain +build:android --config=cross_compile build:android_arm --config=android build:android_arm --cpu=armeabi-v7a build:android_arm --fat_apk_cpu=armeabi-v7a |