Skip to content

Commit

Permalink
Disable release optimizations. Workaround for #31
Browse files Browse the repository at this point in the history
Co-Authored-By: Alexey Zinchenko <[email protected]>
  • Loading branch information
Kylmakalle and zintus committed Jul 6, 2023
1 parent 1e075d1 commit ff48093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ let package = Package(
targets: [
.target(
name: "TDLibKit",
dependencies: ["TDLibFramework"]
dependencies: ["TDLibFramework"],
swiftSettings: [.unsafeFlags(["-Onone"])]
// Workaround for https://github.com/Swiftgram/TDLibKit/issues/31
),
.testTarget(
name: "TDLibKitTests",
Expand Down
4 changes: 3 additions & 1 deletion scripts/swift_package_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def get_file_content(tdlibframework_version):
targets: [
.target(
name: "TDLibKit",
dependencies: ["TDLibFramework"]
dependencies: ["TDLibFramework"],
swiftSettings: [.unsafeFlags(["-Onone"])]
// Workaround for https://github.com/Swiftgram/TDLibKit/issues/31
),
.testTarget(
name: "TDLibKitTests",
Expand Down

0 comments on commit ff48093

Please sign in to comment.