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.
This commit is contained in:
Anthony Cowley 2016-09-22 23:02:03 -04:00
parent cdec20ac58
commit 7181d20a4f

View file

@ -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 = ''