Skip to content

Commit feaa911

Browse files
Jiri Slabygregkh
authored andcommitted
kbuild: dummy-tools: fix inverted tests for gcc
[ Upstream commit b3d9fc1 ] There is a test in Kconfig which takes inverted value of a compiler check: * config CC_HAS_INT128 def_bool !$(cc-option,$(m64-flag) -D__SIZEOF_INT128__=0) This results in CC_HAS_INT128 not being in super-config generated by dummy-tools. So take this into account in the gcc script. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ede8be3 commit feaa911

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • scripts/dummy-tools

‎scripts/dummy-tools/gcc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,8 @@ if arg_contain -print-file-name=plugin "$@"; then
8989
echo $plugin_dir
9090
exit 0
9191
fi
92+
93+
# inverted return value
94+
if arg_contain -D__SIZEOF_INT128__=0 "$@"; then
95+
exit 1
96+
fi

0 commit comments

Comments
 (0)