]> git.proxmox.com Git - ceph.git/blame - ceph/src/seastar/dpdk/mk/toolchain/icc/rte.vars.mk
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / dpdk / mk / toolchain / icc / rte.vars.mk
CommitLineData
9f95a23c
TL
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2010-2014 Intel Corporation
7c673cae
FG
3
4#
5# toolchain:
6#
9f95a23c
TL
7# - define CC, LD, AR, AS, ... (overridden by cmdline value)
8# - define TOOLCHAIN_CFLAGS variable (overridden by cmdline value)
9# - define TOOLCHAIN_LDFLAGS variable (overridden by cmdline value)
10# - define TOOLCHAIN_ASFLAGS variable (overridden by cmdline value)
7c673cae
FG
11#
12
13# Warning: we do not use CROSS environment variable as icc is mainly a
14# x86->x86 compiler
15
16CC = icc
17KERNELCC = gcc
18CPP = cpp
19AS = nasm
20AR = ar
21LD = ld
22OBJCOPY = objcopy
23OBJDUMP = objdump
24STRIP = strip
25READELF = readelf
26
27ifeq ($(KERNELRELEASE),)
28HOSTCC = icc
29else
30HOSTCC = gcc
31endif
32HOSTAS = as
33
34TOOLCHAIN_CFLAGS =
35TOOLCHAIN_LDFLAGS =
36TOOLCHAIN_ASFLAGS =
37
38# Turn off some ICC warnings -
39# Remark #271 : trailing comma is nonstandard
40# Warning #1478 : function "<func_name>" (declared at line N of "<filename>")
41# error #13368: loop was not vectorized with "vector always assert"
42# error #15527: loop was not vectorized: function call to fprintf cannot be vectorize
43# was declared "deprecated"
11fdf7f2 44# Warning #11074, 11076: to prevent "inline-max-size" warnings.
7c673cae
FG
45WERROR_FLAGS := -Wall -w2 -diag-disable 271 -diag-warning 1478
46WERROR_FLAGS += -diag-disable 13368 -diag-disable 15527
11fdf7f2 47WERROR_FLAGS += -diag-disable 188
9f95a23c 48WERROR_FLAGS += -diag-disable 11074 -diag-disable 11076 -Wdeprecated
7c673cae
FG
49
50ifeq ($(RTE_DEVEL_BUILD),y)
51WERROR_FLAGS += -Werror-all
52endif
53
54# process cpu flags
55include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
7c673cae
FG
56
57export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
58export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS