1# -*- shell-script -*-
2#  Copyright (C) 2012-2021 Free Software Foundation, Inc.
3#  Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
4#  for General Processor Tech.
5#
6#  This file is part of the libhsail-rt.
7#
8#  Permission is hereby granted, free of charge, to any person obtaining a
9#  copy of this software and associated documentation files
10#  (the "Software"), to deal in the Software without restriction, including
11#  without limitation the rights to use, copy, modify, merge, publish,
12#  distribute, sublicense, and/or sell copies of the Software, and to
13#  permit persons to whom the Software is furnished to do so, subject to
14#  the following conditions:
15#
16#  The above copyright notice and this permission notice shall be included
17#  in all copies or substantial portions of the Software.
18#
19#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20#  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
23#  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24#  OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
25#  USE OR OTHER DEALINGS IN THE SOFTWARE.
26
27# Disable the BRIG frontend and libhsail-rt on untested or known
28# broken systems. Currently it has been tested only on x86_64 Linux
29# of the upstream gcc targets. More targets shall be added after testing.
30case "${target}" in
31  x86_64-*-linux* | i?86-*-linux*)
32    ;;
33    *)
34    UNSUPPORTED=1
35    ;;
36esac
37