xref: /linux/include/linux/compiler-version.h (revision ce6ed1c4)
1*ce6ed1c4SMasahiro Yamada /* SPDX-License-Identifier: GPL-2.0-only */
2*ce6ed1c4SMasahiro Yamada 
3*ce6ed1c4SMasahiro Yamada #ifdef  __LINUX_COMPILER_VERSION_H
4*ce6ed1c4SMasahiro Yamada #error "Please do not include <linux/compiler-version.h>. This is done by the build system."
5*ce6ed1c4SMasahiro Yamada #endif
6*ce6ed1c4SMasahiro Yamada #define __LINUX_COMPILER_VERSION_H
7*ce6ed1c4SMasahiro Yamada 
8*ce6ed1c4SMasahiro Yamada /*
9*ce6ed1c4SMasahiro Yamada  * This header exists to force full rebuild when the compiler is upgraded.
10*ce6ed1c4SMasahiro Yamada  *
11*ce6ed1c4SMasahiro Yamada  * When fixdep scans this, it will find this string "CONFIG_CC_VERSION_TEXT"
12*ce6ed1c4SMasahiro Yamada  * and add dependency on include/config/cc/version/text.h, which is touched
13*ce6ed1c4SMasahiro Yamada  * by Kconfig when the version string from the compiler changes.
14*ce6ed1c4SMasahiro Yamada  */
15