@@ -27,6 +27,7 @@ def _bssl_header_impl(name, src_file, dst_file):
2727 srcs = srcs + native .glob ([patch_script , patch_file ]),
2828 outs = [dst_file ],
2929 cmd = """
30+ set -x # Enable command echo for debugging
3031 # Set up paths - all paths need to be relative to bssl-compat package
3132 SRC_FILE="$(location third_party/boringssl/src/{src_file})"
3233 DST_FILE="$(location {dst_file})"
@@ -42,10 +43,11 @@ def _bssl_header_impl(name, src_file, dst_file):
4243 mkdir -p "$$TMP_DIR"
4344 trap 'rm -rf $$TMP_DIR' EXIT
4445
45- echo "DEBUG : TMP_DIR = $$TMP_DIR"
46- ls -l "$$(dirname $$TMP_DIR)" | sed 's/^/DEBUG : /'
47- ls -l "$$SRC_FILE" | sed 's/^/DEBUG : /'
46+ echo "DEBUG[{name}] : TMP_DIR = $$TMP_DIR"
47+ ls -l "$$(dirname $$TMP_DIR)" | sed 's/^/DEBUG[{name}] : /'
48+ ls -l "$$SRC_FILE" | sed 's/^/DEBUG[{name}] : /'
4849 cp "$$SRC_FILE" "$$TMP_DIR/working.h"
50+ ls -l "$$TMP_DIR" | sed 's/^/DEBUG[{name}] : /'
4951 WORKING="$$TMP_DIR/working.h"
5052
5153 # Apply patch file if it exists
@@ -65,7 +67,7 @@ def _bssl_header_impl(name, src_file, dst_file):
6567
6668 # Copy result to destination
6769 cp "$$WORKING" "$$DST_FILE"
68- """ .format (src_file = src_file , dst_file = dst_file ),
70+ """ .format (name = name , src_file = src_file , dst_file = dst_file ),
6971 tools = tools ,
7072 visibility = ["//visibility:private" ],
7173 )
0 commit comments