mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
454237a083
When building the `OSLog` module, look for a variable named
`osLogStringSectionName`. It must have a string literal as its
initializer, which provides the section name where the log strings
should be emitted. The `OSLog` module should contain something like
this:
let osLogStringSectionName = "__TEXT,__logit"
When not present, the compiler will default to
`__TEXT,__oslogstring,cstring_literals`, which was previously the
hardcoded section name. Now, OSLog can customize the name.
Implements rdar://171571056
2 lines
46 B
Swift
2 lines
46 B
Swift
let osLogStringSectionName = "__TEXT,__logit"
|