From 7d81944cccf39425fb02325706c5b33b950790c4 Mon Sep 17 00:00:00 2001 From: Jian Cai Date: Thu, 29 Jul 2021 11:19:33 -0700 Subject: compiler_wrapper: support -W[no-]unused-set-variable BUG=b:194845241 TEST=emerge-atlas harfbuzz Change-Id: I262883ee20ed0fc69fcc3bf119d3068f4cf7729b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3061363 Tested-by: Jian Cai Reviewed-by: George Burgess --- .../clang_specific_args.json | 156 --------------------- 1 file changed, 156 deletions(-) (limited to 'compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json') diff --git a/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json b/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json index 1c809647..2b73d51b 100644 --- a/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json +++ b/compiler_wrapper/testdata/cros_nonhardened_golden/clang_specific_args.json @@ -171,162 +171,6 @@ } ] }, - { - "wd": "/tmp/stable", - "wrapper": { - "cmd": { - "path": "./x86_64-cros-linux-gnu-clang", - "args": [ - "-Wno-error=unused-but-set-variable", - "main.cc" - ] - } - }, - "cmds": [ - { - "cmd": { - "path": "/usr/bin/ccache", - "args": [ - "../../usr/bin/clang", - "--sysroot=/usr/x86_64-cros-linux-gnu", - "-Qunused-arguments", - "-fdebug-default-version=5", - "-Wno-tautological-constant-compare", - "-Wno-tautological-unsigned-enum-zero-compare", - "-Wno-unknown-warning-option", - "-Wno-section", - "-Wno-final-dtor-non-final-class", - "-Werror=poison-system-directories", - "-fexperimental-new-pass-manager", - "-Wno-compound-token-split-by-macro", - "-Wno-deprecated-declarations", - "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics", - "-static-libgcc", - "--prefix=../../bin/x86_64-cros-linux-gnu-", - "-Wno-error=unused-variable", - "main.cc", - "-Wno-implicit-int-float-conversion", - "-Wno-compound-token-split-by-space", - "-Wno-string-concatenation", - "-Wno-deprecated-copy", - "-mno-movbe", - "-B../../bin", - "-target", - "x86_64-cros-linux-gnu" - ], - "env_updates": [ - "CCACHE_DIR=/var/cache/distfiles/ccache", - "CCACHE_UMASK=002", - "CCACHE_CPP2=yes" - ] - } - } - ] - }, - { - "wd": "/tmp/stable", - "wrapper": { - "cmd": { - "path": "./x86_64-cros-linux-gnu-clang", - "args": [ - "-Wno-unused-but-set-variable", - "main.cc" - ] - } - }, - "cmds": [ - { - "cmd": { - "path": "/usr/bin/ccache", - "args": [ - "../../usr/bin/clang", - "--sysroot=/usr/x86_64-cros-linux-gnu", - "-Qunused-arguments", - "-fdebug-default-version=5", - "-Wno-tautological-constant-compare", - "-Wno-tautological-unsigned-enum-zero-compare", - "-Wno-unknown-warning-option", - "-Wno-section", - "-Wno-final-dtor-non-final-class", - "-Werror=poison-system-directories", - "-fexperimental-new-pass-manager", - "-Wno-compound-token-split-by-macro", - "-Wno-deprecated-declarations", - "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics", - "-static-libgcc", - "--prefix=../../bin/x86_64-cros-linux-gnu-", - "-Wno-unused-variable", - "main.cc", - "-Wno-implicit-int-float-conversion", - "-Wno-compound-token-split-by-space", - "-Wno-string-concatenation", - "-Wno-deprecated-copy", - "-mno-movbe", - "-B../../bin", - "-target", - "x86_64-cros-linux-gnu" - ], - "env_updates": [ - "CCACHE_DIR=/var/cache/distfiles/ccache", - "CCACHE_UMASK=002", - "CCACHE_CPP2=yes" - ] - } - } - ] - }, - { - "wd": "/tmp/stable", - "wrapper": { - "cmd": { - "path": "./x86_64-cros-linux-gnu-clang", - "args": [ - "-Wunused-but-set-variable", - "main.cc" - ] - } - }, - "cmds": [ - { - "cmd": { - "path": "/usr/bin/ccache", - "args": [ - "../../usr/bin/clang", - "--sysroot=/usr/x86_64-cros-linux-gnu", - "-Qunused-arguments", - "-fdebug-default-version=5", - "-Wno-tautological-constant-compare", - "-Wno-tautological-unsigned-enum-zero-compare", - "-Wno-unknown-warning-option", - "-Wno-section", - "-Wno-final-dtor-non-final-class", - "-Werror=poison-system-directories", - "-fexperimental-new-pass-manager", - "-Wno-compound-token-split-by-macro", - "-Wno-deprecated-declarations", - "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics", - "-static-libgcc", - "--prefix=../../bin/x86_64-cros-linux-gnu-", - "-Wunused-variable", - "main.cc", - "-Wno-implicit-int-float-conversion", - "-Wno-compound-token-split-by-space", - "-Wno-string-concatenation", - "-Wno-deprecated-copy", - "-mno-movbe", - "-B../../bin", - "-target", - "x86_64-cros-linux-gnu" - ], - "env_updates": [ - "CCACHE_DIR=/var/cache/distfiles/ccache", - "CCACHE_UMASK=002", - "CCACHE_CPP2=yes" - ] - } - } - ] - }, { "wd": "/tmp/stable", "wrapper": { -- cgit v1.2.3