* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / x86 / icc / parse-config
blob6fbadea9e3de1d6cdcbd8c9afa8fc0ed8752bcc3
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/icc/parse-config
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 for x in CC CXX KCC ; do
14         if eval '[ "$SDECFG_DEFAULT_'$x'" = "icc" ]' ; then
15                 if
16                         [ -x "`type -p icc`" ]
17                 then
18                         eval 'export '$x'="icc"'
19                         for x in $base/package/base/icc/patches/pkg_${pkg}{,_*}.patch
20                         do
21                                 if [ -f $x ] ; then
22                                         var_remove patchfiles " " $x
23                                         var_append patchfiles " " $x
24                                 fi
25                         done
26                 fi
27         fi
28 done
30 var_insert ICC_WRAPPER_REMOVE " " "-O -O[01] -m*"
31 var_insert ICC_WRAPPER_INSERT " " "-O2"
33 if [ -f architecture/$arch/icc-options.in ] ; then
34         . architecture/$arch/icc-options.in