From 4c2de1e1194e19bd883b7623be024638277a2a1b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 24 Mar 2021 11:24:09 -0400 Subject: [PATCH] Map file paths in debug info to make debug libs path-independent --- genbindings.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genbindings.sh b/genbindings.sh index 5ca73190..50c5f1b3 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -11,9 +11,9 @@ usage() { [ "$4" != "true" -a "$4" != "false" ] && usage if [ "$CC" != "" ]; then - COMMON_COMPILE="$CC -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wno-nullability-completeness -Wno-pointer-sign" + COMMON_COMPILE="$CC -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wno-nullability-completeness -Wno-pointer-sign -Wdate-time -ffile-prefix-map=$(pwd)=" else - COMMON_COMPILE="clang -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wno-nullability-completeness -Wno-pointer-sign" + COMMON_COMPILE="clang -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wno-nullability-completeness -Wno-pointer-sign -Wdate-time -ffile-prefix-map=$(pwd)=" fi set -e -- 2.39.5