]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Add missing `rustc` `metadata` override for `lightning_types`
authorMatt Corallo <git@bluematt.me>
Thu, 5 Sep 2024 01:27:23 +0000 (01:27 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 5 Sep 2024 01:27:23 +0000 (01:27 +0000)
This should resolve non-determinism in builds.

deterministic-build-wrappers/rustc

index b05d3407a9f14c39cad0f6a1a26104d49c97a46e..5ac8fe21e2412c2f4e265a96625c8c714a181d4f 100755 (executable)
@@ -10,7 +10,7 @@ IS_LIGHTNING=false
 for ((i=0; i<"${#args[@]}"; ++i)); do
     case ${args[i]} in
         --crate-name)
-                       if [ "${args[i+1]}" = "lightning" -o "${args[i+1]}" = "lightning_background_processor" -o "${args[i+1]}" = "lightning_invoice" -o "${args[i+1]}" = "lightning_persister" -o "${args[i+1]}" = "lightning_rapid_gossip_sync" -o "${args[i+1]}" = "ldk" ]; then
+                       if [ "${args[i+1]}" = "lightning" -o "${args[i+1]}" = "lightning_types" -o "${args[i+1]}" = "lightning_background_processor" -o "${args[i+1]}" = "lightning_invoice" -o "${args[i+1]}" = "lightning_persister" -o "${args[i+1]}" = "lightning_rapid_gossip_sync" -o "${args[i+1]}" = "ldk" ]; then
                                IS_LIGHTNING=true
                        fi
                        ;;