Merge pull request #18864 from acowley/mlton-clang
mlton: fix build with clang (darwin)
commita8d4f747a4ffe6b053f066bcef8d30d321c54fb6
authorJoachim F <joachifm@users.noreply.github.com>
dateFri 23 Sep 2016, 20:18 (10 years ago)
parent7192bab7181d20
pkgs/development/compilers/mlton/default.nix+2
@@ -61,6 +61,8 @@ stdenv.mkDerivation rec {
6161 done
6262
6363 substituteInPlace $(pwd)/../${usr_prefix}/bin/mlton --replace '/${usr_prefix}/lib/mlton' $(pwd)/../${usr_prefix}/lib/mlton
64+ '' + stdenv.lib.optionalString stdenv.cc.isClang ''
65+ 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
6466 '';
6567
6668 preBuild = ''