postgresql: refactor removal of references in bitcode files
This prevents silently ignoring errors from "find".
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user