]> git.bitcoin.ninja Git - ldk-java/commitdiff
Map file paths in debug info to make debug libs path-independent
authorMatt Corallo <git@bluematt.me>
Wed, 24 Mar 2021 15:24:09 +0000 (11:24 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 24 Mar 2021 15:25:09 +0000 (11:25 -0400)
genbindings.sh

index 5ca73190701ef4617adcb21a9dd20e8fa82733b4..50c5f1b368f38afbff4ed6846a19be8087bc4cfd 100755 (executable)
@@ -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