From 94debc29986dc6d17fd0329b706fc3ea3a9e9a9c Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 9 Apr 2020 08:31:38 +0200 Subject: wrapper: icecc: don't store the gcc switches in the debug section By default a lot of gcc switches are stored in DW_AT_producer. This includes '-fdirectives-only' and other options that are added by icecc. As a result, the DW_AT_producer is different for locally and remotely compiled objects. This produces a different build ID. Add '-gno-record-gcc-switches' to the command-line when icecc is enabled. In this case, only the compiler version is stored in DW_AT_producer. Signed-off-by: Michael Olbrich --- scripts/wrapper/libwrapper.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/wrapper/libwrapper.sh b/scripts/wrapper/libwrapper.sh index d54e923dd..91bb955a8 100644 --- a/scripts/wrapper/libwrapper.sh +++ b/scripts/wrapper/libwrapper.sh @@ -279,6 +279,7 @@ add_icecc_args() { if [ -n "${PTXDIST_ICECC}" ]; then if [ "${1}" != clang ]; then add_late_arg "-fno-diagnostics-show-caret" + add_late_arg "-gno-record-gcc-switches" elif [ "${PTXDIST_ICECC_CLANG}" != 1 ]; then unset PTXDIST_ICECC return -- cgit v1.2.3