mlton: fix build with clang (darwin)

A minor tweak is necessary to avoid raising an error when building with
clang. This gets mlton building on darwin.
wip/yesman
Anthony Cowley 8 years ago
parent cdec20ac58
commit 7181d20a4f
  1. 2
      pkgs/development/compilers/mlton/default.nix

@ -61,6 +61,8 @@ stdenv.mkDerivation rec {
done
substituteInPlace $(pwd)/../${usr_prefix}/bin/mlton --replace '/${usr_prefix}/lib/mlton' $(pwd)/../${usr_prefix}/lib/mlton
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
sed -i "s_ patch -s -p0 <gdtoa.hide-public-fns.patch_ patch -s -p0 <gdtoa.hide-public-fns.patch\n\tsed -i 's|printf(emptyfmt|printf(\"\"|g' ./gdtoa/arithchk.c_" ./runtime/Makefile
'';
preBuild = ''

Loading…
Cancel
Save