postgresql: refactor removal of references in bitcode files

This prevents silently ignoring errors from "find".
This commit is contained in:
Wolfgang Walther
2024-08-23 21:37:49 +02:00
parent 94d432ce88
commit dfde86f738
+2 -2
View File
@@ -217,8 +217,8 @@ let
# Those are only used when building e.g. extensions, so go to $dev.
moveToOutput "lib/*.a" "$dev"
'' + lib.optionalString jitSupport ''
# In the case of JIT support, prevent a retained dependency on clang-wrapper
nuke-refs $out/lib/llvmjit_types.bc $(find $out/lib/bitcode -type f)
# In the case of JIT support, prevent useless dependencies on header files
find "$out/lib" -iname '*.bc' -type f -exec nuke-refs '{}' +
# Stop lib depending on the -dev output of llvm
remove-references-to -t ${llvmPackages.llvm.dev} "$out/lib/llvmjit${dlSuffix}"