From c8a14507cea35c77acc5bfbca8d7143d3f92a95c Mon Sep 17 00:00:00 2001 From: iarspider Date: Thu, 1 Aug 2024 14:34:43 +0200 Subject: [PATCH] Fix bazel recipe --- bazel.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel.spec b/bazel.spec index 0ecf3692eb5..cd84cf12e8b 100644 --- a/bazel.spec +++ b/bazel.spec @@ -29,7 +29,7 @@ Patch1: bazel-absl %build export EXTRA_BAZEL_ARGS="--define=ABSOLUTE_JAVABASE=${JAVA_HOME} --jobs %{compiling_processes}" -export BAZEL_CXXOPTS="-Wno-error=deprecated: -std=c++%{cms_cxx_standard}" +export BAZEL_CXXOPTS="-Wno-error=deprecated:-std=c++%{cms_cxx_standard}" ${JAVA_HOME}/bin/java -version 2>&1 | grep -E -i 'openjdk version "[1-9]' if [ $(${JAVA_HOME}/bin/java -version 2>&1 | grep -E -i 'openjdk version "[1-9]' | sed -E 's|.* "([0-9]+)[.].*|\1|') -ge 17 ] ; then export JNI_FLAGS="--add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED"