aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Sujak <jakub.sujak@arm.com>2023-02-27 15:24:20 +0000
committerJakub Sujak <jakub.sujak@arm.com>2023-02-27 15:24:20 +0000
commitcfb1c3035cbfc31a2fe8491c7df13e911698e2b6 (patch)
tree58c62941ea4d541573c914e804608a783922ab79
parentf8f7ede7a01eb5cd9d06060b4d2f2d1404d93f29 (diff)
downloadComputeLibrary-cfb1c3035cbfc31a2fe8491c7df13e911698e2b6.tar.gz
Add bazelrc configuration file
-rw-r--r--.bazelrc38
1 files changed, 38 insertions, 0 deletions
diff --git a/.bazelrc b/.bazelrc
new file mode 100644
index 000000000..267e64898
--- /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