Skip to content

Commit

Permalink
postgresql: refactor removal of references in bitcode files
Browse files Browse the repository at this point in the history
This prevents silently ignoring errors from "find".
  • Loading branch information
wolfgangwalther committed Aug 23, 2024
1 parent 94d432c commit dfde86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/servers/sql/postgresql/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit dfde86f

Please sign in to comment.