提交 16d96d64 编写于 作者: L Levi Bard

-Os (and -O2 and even -O1) on llvm break/crash the soft debugger.

Work around this for now by manually enabling -Os optimizations from the llvm doc.
上级 f0217691
......@@ -72,7 +72,10 @@ for my $arch (@arches)
$ENV{LDFLAGS} = "-arch $arch";
} else
{
$ENV{CFLAGS} = "-arch $arch -Os -D_XOPEN_SOURCE=1 -DMONO_DISABLE_SHM=1 -DDISABLE_SHARED_HANDLES=1"; #optimize for size
# -Os (and -O2 and even -O1) on llvm break/crash the soft debugger
# Work around this for now by manually enabling -Os optimizations from the llvm doc
my $Os = '-fglobal-alloc-prefer-bytes -fomit-frame-pointer -fdefer-pop -fguess-branch-probability -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -fexpensive-optimizations -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove -fstrict-aliasing -fstrict-overflow -fdelete-null-pointer-checks -freorder-functions -ftree-vrp -ftree-pre';
$ENV{CFLAGS} = "-arch $arch -O0 $Os -D_XOPEN_SOURCE=1 -DMONO_DISABLE_SHM=1 -DDISABLE_SHARED_HANDLES=1"; #optimize for size
$ENV{CXXFLAGS} = $ENV{CFLAGS};
$ENV{LDFLAGS} = "-arch $arch";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册