blob: 1dbbedc8bde91141b9e0691866a9bb114c181cac [file] [log] [blame]
David Svantessone0c42ef2022-12-15 16:25:57 +00001# Copyright (c) 2023 Arm Limited.
2#
3# SPDX-License-Identifier: MIT
4#
5# Permission is hereby granted, free of charge, to any person obtaining a copy
6# of this software and associated documentation files (the "Software"), to
7# deal in the Software without restriction, including without limitation the
8# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9# sell copies of the Software, and to permit persons to whom the Software is
10# furnished to do so, subject to the following conditions:
11#
12# The above copyright notice and this permission notice shall be included in all
13# copies or substantial portions of the Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21# SOFTWARE.
22
23build --cxxopt="-Wall" --cxxopt="-DARCH_ARM" --cxxopt="-Wextra" --cxxopt="-pedantic" \
24 --cxxopt="-Wdisabled-optimization" --cxxopt="-Wformat=2" --cxxopt="-Winit-self" \
25 --cxxopt="-Wstrict-overflow=2" --cxxopt="-Wswitch-default" --cxxopt="-Woverloaded-virtual" \
26 --cxxopt="-Wformat-security" --cxxopt="-Wctor-dtor-privacy" --cxxopt="-Wsign-promo" \
27 --cxxopt="-Weffc++" --cxxopt="-Wno-overlength-strings" --cxxopt="-Wno-ignored-attributes" \
28 --cxxopt="-std=c++14"
29
30--repo_env=CC=gcc-10
31--repo_env=CXX=g++-10
32
33# Flag alises to allow user to write for example --Werror=true instead of --//:Werror=true
34build --flag_alias=Werror=//:Werror
35build --flag_alias=debug=//:debug
36build --flag_alias=logging=//:logging
37build --flag_alias=openmp=//:openmp
38build --flag_alias=cppthreads=//:cppthreads
David Svantesson45370892023-02-22 11:08:57 +000039build --flag_alias=enable_bf16_validation=//:enable_bf16_validation
David Svantesson3b162e52023-03-28 14:13:32 +000040build --flag_alias=enable_sve_validation=//:enable_sve_validation
David Svantesson90d15b92023-06-08 10:05:59 +000041build --flag_alias=arch=//:arch