Skip to content

Commit 7761384

Browse files
authored
Handle empty user build flags (#242)
1 parent 1bc3aa6 commit 7761384

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tensorflow-core/tensorflow-core-api/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ BUILD_FLAGS="$BUILD_FLAGS --experimental_repo_remote_exec --python_path="$PYTHON
3333
BUILD_FLAGS="$BUILD_FLAGS --distinct_host_configuration=true"
3434

3535
# Build C/C++ API of TensorFlow itself including a target to generate ops for Java
36-
bazel build $BUILD_FLAGS $BUILD_EXTRA_FLAGS \
36+
bazel build $BUILD_FLAGS ${BUILD_USER_FLAGS:-} \
3737
@org_tensorflow//tensorflow:tensorflow_cc \
3838
@org_tensorflow//tensorflow/tools/lib_package:jnilicenses_generate \
3939
:java_proto_gen_sources \

tensorflow-core/tensorflow-core-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
</buildCommand>
261261
<environmentVariables>
262262
<EXTENSION>${javacpp.platform.extension}</EXTENSION>
263-
<BUILD_EXTRA_FLAGS>${native.build.flags}</BUILD_EXTRA_FLAGS>
263+
<BUILD_USER_FLAGS>${native.build.flags}</BUILD_USER_FLAGS>
264264
</environmentVariables>
265265
<workingDirectory>${project.basedir}</workingDirectory>
266266
</configuration>

0 commit comments

Comments
 (0)