aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorAlexandros Naskos <alex_naskos@hotmail.com>2018-04-16 03:54:40 +0300
committerAlexandros Naskos <alex_naskos@hotmail.com>2018-04-16 03:54:40 +0300
commit1c85050dad6a7e1d486606205ca2eb2cd7028ef5 (patch)
tree4c4dce2fddf5def099bcfdce54b4930ff6109be2 /src/zig_llvm.cpp
parent253ecd5c11747f49575b8425a506c2fecfe26ee2 (diff)
downloadzig-1c85050dad6a7e1d486606205ca2eb2cd7028ef5.tar.gz
zig-1c85050dad6a7e1d486606205ca2eb2cd7028ef5.zip
Set SizeLevel to 2 in ReleaseSmall mode
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
index ef0e9f24a8..a56378ab3e 100644
--- a/src/zig_llvm.cpp
+++ b/src/zig_llvm.cpp
@@ -100,7 +100,7 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM
return true;
}
PMBuilder->OptLevel = target_machine->getOptLevel();
- PMBuilder->SizeLevel = is_small ? 1 : 0;
+ PMBuilder->SizeLevel = is_small ? 2 : 0;
PMBuilder->DisableTailCalls = is_debug;
PMBuilder->DisableUnitAtATime = is_debug;