aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
index 5aca64cd0a..167e7a162f 100644
--- a/src/zig_llvm.cpp
+++ b/src/zig_llvm.cpp
@@ -129,6 +129,7 @@ LLVMTargetMachineRef ZigLLVMCreateTargetMachine(LLVMTargetRef T, const char *Tri
TargetOptions opt;
+ opt.UseInitArray = true;
opt.FunctionSections = function_sections;
opt.DataSections = data_sections;
switch (float_abi) {