add -Z emit-stack-sizes
This commit is contained in:
parent
c3a1a0d340
commit
3c0907ce51
4 changed files with 10 additions and 2 deletions
|
@ -373,7 +373,8 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
|
|||
bool DataSections,
|
||||
bool TrapUnreachable,
|
||||
bool Singlethread,
|
||||
bool AsmComments) {
|
||||
bool AsmComments,
|
||||
bool EmitStackSizeSection) {
|
||||
|
||||
auto OptLevel = fromRust(RustOptLevel);
|
||||
auto RM = fromRust(RustReloc);
|
||||
|
@ -411,6 +412,8 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
|
|||
}
|
||||
|
||||
#if LLVM_VERSION_GE(6, 0)
|
||||
Options.EmitStackSizeSection = EmitStackSizeSection;
|
||||
|
||||
Optional<CodeModel::Model> CM;
|
||||
#else
|
||||
CodeModel::Model CM = CodeModel::Model::Default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue