From e0c42ef651709fd284da3bedd2c98d420bd6fd1a Mon Sep 17 00:00:00 2001 From: David Svantesson Date: Thu, 15 Dec 2022 16:25:57 +0000 Subject: Bazel and CMake builds Resolves: ONCPUML-1110, ONCPUML-1109 Co-authored-by: Georgios Pinitas Co-authored-by: Joe Ramsay Signed-off-by: David Svantesson Change-Id: Iea693dbe53bf0af87867d6a9e0d1fd9fbe59ef3a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8981 Benchmark: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Jakub Sujak Reviewed-by: Gunes Bayir Comments-Addressed: Arm Jenkins --- .bazelrc | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .bazelrc (limited to '.bazelrc') diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 0000000000..267e648987 --- /dev/null +++ b/.bazelrc @@ -0,0 +1,38 @@ +# Copyright (c) 2023 Arm Limited. +# +# SPDX-License-Identifier: MIT +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +build --cxxopt="-Wall" --cxxopt="-DARCH_ARM" --cxxopt="-Wextra" --cxxopt="-pedantic" \ + --cxxopt="-Wdisabled-optimization" --cxxopt="-Wformat=2" --cxxopt="-Winit-self" \ + --cxxopt="-Wstrict-overflow=2" --cxxopt="-Wswitch-default" --cxxopt="-Woverloaded-virtual" \ + --cxxopt="-Wformat-security" --cxxopt="-Wctor-dtor-privacy" --cxxopt="-Wsign-promo" \ + --cxxopt="-Weffc++" --cxxopt="-Wno-overlength-strings" --cxxopt="-Wno-ignored-attributes" \ + --cxxopt="-std=c++14" + +--repo_env=CC=gcc-10 +--repo_env=CXX=g++-10 + +# Flag alises to allow user to write for example --Werror=true instead of --//:Werror=true +build --flag_alias=Werror=//:Werror +build --flag_alias=debug=//:debug +build --flag_alias=logging=//:logging +build --flag_alias=openmp=//:openmp +build --flag_alias=cppthreads=//:cppthreads -- cgit v1.2.1