diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-04-09 08:31:38 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-04-09 15:13:03 +0200 |
commit | 94debc29986dc6d17fd0329b706fc3ea3a9e9a9c (patch) | |
tree | 5a8b28bc91e9a8c199a92c14a7b368bc82885eee | |
parent | ac9c376aa977400d2a13eae4368d210bb9678d49 (diff) | |
download | ptxdist-94debc29986dc6d17fd0329b706fc3ea3a9e9a9c.tar.gz ptxdist-94debc29986dc6d17fd0329b706fc3ea3a9e9a9c.tar.xz |
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 <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/wrapper/libwrapper.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |