Skip to content

Commit

Permalink
kbuild: dummy-tools: fix inverted tests for gcc
Browse files Browse the repository at this point in the history
[ 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>
  • Loading branch information
Jiri Slaby authored and gregkh committed Mar 30, 2021
1 parent 0346028 commit 207e723
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/dummy-tools/gcc
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,8 @@ if arg_contain -print-file-name=plugin "$@"; then
echo $plugin_dir
exit 0
fi

# inverted return value
if arg_contain -D__SIZEOF_INT128__=0 "$@"; then
exit 1
fi

0 comments on commit 207e723

Please sign in to comment.