Skip to content

Commit

Permalink
Fix bazel recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Aug 1, 2024
1 parent d202a83 commit c8a1450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazel.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c8a1450

Please sign in to comment.