Skip to content

Commit

Permalink
Remove unsafe flags from Canopy linker settings (#1)
Browse files Browse the repository at this point in the history
This was OK to have in local development, but cannot have it in live use.
  • Loading branch information
jaanus authored Mar 27, 2023
1 parent ea7dba6 commit 4d04165
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ let package = Package(
.target(
name: "Canopy",
dependencies: ["Semaphore", "CanopyTypes"],
path: "Targets/Canopy/Sources",
path: "Targets/Canopy/Sources"
// https://danielsaidi.com/blog/2022/05/18/how-to-suppress-linking-warning
linkerSettings: [.unsafeFlags(["-Xlinker", "-no_application_extension"])]
// Canopy by default gives a warning about unsafe code for application extensions. Not sure why it says that.
// See the above blog post for more info.
// The following line is OK to have in local development, but in live setting, cannot be used.
// linkerSettings: [.unsafeFlags(["-Xlinker", "-no_application_extension"])]
),
.target(
name: "CanopyTestTools",
Expand Down

0 comments on commit 4d04165

Please sign in to comment.