darwin.diskdev_cmds: fix build with dsymutil
xcbuild doesn’t handle dsymutil correctly. fuser.pl does not contain debug symbols, but xcbuild doesn’t handle this like xcodebuild does. So, just disable the debug information. We probably should do this in more places using xcbuild, but it requires some arbitrary patching.
This commit is contained in:
parent
09ff7707ae
commit
2bbec30c2e
|
@ -18,14 +18,16 @@ appleDerivation {
|
|||
cp xnu-*/bsd/i386/disklabel.h i386
|
||||
cp -r xnu-*/bsd/sys System
|
||||
cp -r Libc-*/uuid System
|
||||
substituteInPlace diskdev_cmds.xcodeproj/project.pbxproj \
|
||||
--replace 'DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";' ""
|
||||
'';
|
||||
installPhase = ''
|
||||
install -D Products/Release/libdisk.a $out/lib/libdisk.a
|
||||
rm Products/Release/libdisk.a
|
||||
for f in Products/Release/*; do
|
||||
if [ -f $f ]; then
|
||||
install -D $file $out/bin/$(basename $f)
|
||||
done
|
||||
install -D $f $out/bin/$(basename $f)
|
||||
fi
|
||||
done
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue