This is an automated email from the ASF dual-hosted git repository.
joshfischer pushed a commit to branch joshfischer/debian10-java11
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/joshfischer/debian10-java11 by
this push:
new a1368a4 move flags to bazel rule
a1368a4 is described below
commit a1368a46b956f5387854e7adb35a5aec22681edc
Author: Josh Fischer <[email protected]>
AuthorDate: Sat Mar 7 09:10:07 2020 -0600
move flags to bazel rule
---
docker/compile/Dockerfile.debian10 | 2 --
third_party/zookeeper/zookeeper.BUILD | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docker/compile/Dockerfile.debian10
b/docker/compile/Dockerfile.debian10
index 691937a..c240b98 100644
--- a/docker/compile/Dockerfile.debian10
+++ b/docker/compile/Dockerfile.debian10
@@ -20,8 +20,6 @@ FROM openjdk:11.0.6-slim-buster
# This is passed to the heron build command via the --config flag
ENV TARGET_PLATFORM debian
ENV bazelVersion 0.26.0
-ENV CFLAGS -Wno-error
-ENV CXXFLAGS -Wno-error
RUN apt-get update && apt-get -y install \
automake \
diff --git a/third_party/zookeeper/zookeeper.BUILD
b/third_party/zookeeper/zookeeper.BUILD
index b59fdb1..008cb5b 100644
--- a/third_party/zookeeper/zookeeper.BUILD
+++ b/third_party/zookeeper/zookeeper.BUILD
@@ -24,6 +24,8 @@ genrule(
cmd = "\n".join([
"export INSTALL_DIR=$$(pwd)/$(@D)",
"export TMP_DIR=$$(mktemp -d -t zookeeper.XXXXX)",
+ "export CXXFLAGS=-Wno-error",
+ "export CFLAGS=-Wno-error",
"mkdir -p $$TMP_DIR",
"cp -R $$(pwd)/external/org_apache_zookeeper/* $$TMP_DIR",
"cd $$TMP_DIR/zookeeper-client/zookeeper-client-c",