File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,16 @@ set -e # stop execution upon the first error
14
14
15
15
C_BINDINGS_SOURCE_DIRECTORY=" $( cd ${LDK_DIRECTORY} ; pwd) /lightning-c-bindings"
16
16
17
+ BASEDIR=$( dirname " $0 " )
18
+ BUILD_LOG_PATH=" ${BASEDIR} /build_libldk.log"
19
+
20
+ # echo -n "" > $BUILD_LOG_PATH
21
+ touch $BUILD_LOG_PATH
22
+
23
+ echo " \n\nPlatform name: ${PLATFORM_NAME} " >> $BUILD_LOG_PATH
24
+ echo " Configuration: ${CONFIGURATION} " >> $BUILD_LOG_PATH
25
+ echo " LLVM Target Triple Suffix: ${LLVM_TARGET_TRIPLE_SUFFIX} " >> $BUILD_LOG_PATH
26
+
17
27
if [[ ${ACTION:- build} = " build" || $ACTION = " install" ]]; then
18
28
TARGET_NAME=" libldk"
19
29
@@ -36,6 +46,7 @@ if [[ ${ACTION:-build} = "build" || $ACTION = "install" ]]; then
36
46
# Clean any pre-existing static libraries that doesn't align with what we're currently trying to build
37
47
for ARCH in $ARCHS
38
48
do
49
+ echo " Current Architecture: ${ARCH} " >> $BUILD_LOG_PATH
39
50
if [[ $( lipo -info " ${BUILT_PRODUCTS_DIR} /${TARGET_NAME} " 2>&1 ) != * " ${ARCH} " * ]]; then
40
51
rm -f " ${BUILT_PRODUCTS_DIR} /${TARGET_NAME} "
41
52
fi
@@ -58,6 +69,7 @@ if [[ ${ACTION:-build} = "build" || $ACTION = "install" ]]; then
58
69
EXECUTABLES=()
59
70
for ARCH in $ARCHS
60
71
do
72
+ echo " CURRENT ARCHITECTURE: ${ARCH} "
61
73
RUST_ARCH=$ARCH
62
74
if [[ $RUST_ARCH = " arm64" ]]; then
63
75
RUST_ARCH=" aarch64"
Original file line number Diff line number Diff line change 24
24
set -e # stop execution upon the first error
25
25
26
26
C_BINDINGS_SOURCE_DIRECTORY=" $( cd ${LDK_DIRECTORY} ; pwd) /lightning-c-bindings"
27
- BUILT_PRODUCTS_DIR=" ` pwd` /binaries" # directory to copy the shared library and headers into
27
+
28
+ BASEDIR=$( dirname " $0 " )
29
+ BUILT_PRODUCTS_DIR=" ${BASEDIR} /binaries" # directory to copy the shared library and headers into
28
30
29
31
30
32
TARGET_NAME=" libldk"
You can’t perform that action at this time.
0 commit comments