Skip to content

Commit b3d9fc1

Browse files
Jiri Slabymasahir0y
authored andcommitted
kbuild: dummy-tools: fix inverted tests for gcc
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>
1 parent 993bdde commit b3d9fc1

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
@@ -85,3 +85,8 @@ if arg_contain -print-file-name=plugin "$@"; then
8585
echo $plugin_dir
8686
exit 0
8787
fi
88+
89+
# inverted return value
90+
if arg_contain -D__SIZEOF_INT128__=0 "$@"; then
91+
exit 1
92+
fi

0 commit comments

Comments
 (0)