David Svantesson | e0c42ef | 2022-12-15 16:25:57 +0000 | [diff] [blame] | 1 | # 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 | |
| 23 | build --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 |
| 34 | build --flag_alias=Werror=//:Werror |
| 35 | build --flag_alias=debug=//:debug |
| 36 | build --flag_alias=logging=//:logging |
| 37 | build --flag_alias=openmp=//:openmp |
| 38 | build --flag_alias=cppthreads=//:cppthreads |
David Svantesson | 4537089 | 2023-02-22 11:08:57 +0000 | [diff] [blame] | 39 | build --flag_alias=enable_bf16_validation=//:enable_bf16_validation |
David Svantesson | 3b162e5 | 2023-03-28 14:13:32 +0000 | [diff] [blame] | 40 | build --flag_alias=enable_sve_validation=//:enable_sve_validation |
David Svantesson | 90d15b9 | 2023-06-08 10:05:59 +0000 | [diff] [blame] | 41 | build --flag_alias=arch=//:arch |