7 , cc ? targetPackages.stdenv.cc
12 name = "make-binary-wrapper-hook";
13 propagatedBuildInputs = [ dieHook ];
16 cc = "${cc}/bin/${cc.targetPrefix}cc ${lib.escapeShellArgs (map (s: "-fsanitize=${s}") sanitizers)}";
20 # Extract the function call used to create a binary wrapper from its embedded docstring
21 extractCmd = writeShellScript "extract-binary-wrapper-cmd" ''
22 ${cc.bintools.targetPrefix}strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p'
25 tests = tests.makeBinaryWrapper;
27 } ./make-binary-wrapper.sh