diff options
Diffstat (limited to 'lang/swift6/files/patch-swift_lib_IRGen_IRGen.cpp')
| -rw-r--r-- | lang/swift6/files/patch-swift_lib_IRGen_IRGen.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/swift6/files/patch-swift_lib_IRGen_IRGen.cpp b/lang/swift6/files/patch-swift_lib_IRGen_IRGen.cpp new file mode 100644 index 000000000000..56dcd103fd2a --- /dev/null +++ b/lang/swift6/files/patch-swift_lib_IRGen_IRGen.cpp @@ -0,0 +1,12 @@ +--- swift/lib/IRGen/IRGen.cpp.orig 2026-04-14 02:40:33 UTC ++++ swift/lib/IRGen/IRGen.cpp +@@ -171,6 +171,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; |
