blob: 0bc3b6c5052c1f2a286f7496c61ef94f411477ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- swift/lib/IRGen/IRGen.cpp.orig 2024-06-06 04:26:30 UTC
+++ swift/lib/IRGen/IRGen.cpp
@@ -135,6 +135,9 @@ swift::getIRTargetOptions(const IRGenOptions &Opts, AS
if (Clang->getTargetInfo().getTriple().isOSBinFormatWasm())
TargetOpts.ThreadModel = llvm::ThreadModel::Single;
+ if (Clang->getTargetInfo().getTriple().isOSFreeBSD())
+ TargetOpts.UseInitArray = 1;
+
if (Opts.EnableGlobalISel) {
TargetOpts.EnableGlobalISel = true;
TargetOpts.GlobalISelAbort = GlobalISelAbortMode::DisableWithDiag;
|