Dash:
[t2.git] / package / develop / llvm / mips64.patch
blob564c5e617461404bdd8f2b1a7592f6d2fbc581d6
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../llvm/mips64.patch
5 # Copyright (C) 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- llvm-10.0.0.src/cmake/config.guess.vanilla 2020-07-02 16:55:53.714063229 +0200
18 +++ llvm-10.0.0.src/cmake/config.guess 2020-07-02 16:57:09.586058707 +0200
19 @@ -930,24 +930,8 @@
20 echo ${UNAME_MACHINE}-unknown-linux-gnu
21 exit ;;
22 mips:Linux:*:* | mips64:Linux:*:*)
23 - eval $set_cc_for_build
24 - sed 's/^ //' << EOF >$dummy.c
25 - #undef CPU
26 - #undef ${UNAME_MACHINE}
27 - #undef ${UNAME_MACHINE}el
28 - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
29 - CPU=${UNAME_MACHINE}el
30 - #else
31 - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
32 - CPU=${UNAME_MACHINE}
33 - #else
34 - CPU=
35 - #endif
36 - #endif
37 -EOF
38 - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
39 - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
40 - ;;
41 + echo ${UNAME_MACHINE}-unknown-linux-gnu
42 + exit ;;
43 or32:Linux:*:*)
44 echo or32-unknown-linux-gnu
45 exit ;;