summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2021-03-03 13:43:14 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2021-03-09 22:17:47 +0300
commitb3d9fc1436808a4ef9927e558b3415e728e710c5 (patch)
tree4840481a00bbcc6c939387ac2852dc2b7577cdcc
parent993bdde94547887faaad4a97f0b0480a6da271c3 (diff)
downloadlinux-b3d9fc1436808a4ef9927e558b3415e728e710c5.tar.xz
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>
-rwxr-xr-xscripts/dummy-tools/gcc5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
index 5c113cad5601..0d0589cf8184 100755
--- a/scripts/dummy-tools/gcc
+++ b/scripts/dummy-tools/gcc
@@ -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