Strip autolink custom section (#390)
This commit is contained in:
parent
9c2ac5f756
commit
8b73e3d4fc
|
@ -240,8 +240,8 @@
|
|||
"repositoryURL": "https://github.com/swiftwasm/WasmTransformer",
|
||||
"state": {
|
||||
"branch": null,
|
||||
"revision": "41548065647ba1b83ce8774a004763719458c2e6",
|
||||
"version": "0.4.1"
|
||||
"revision": "d04b31f61b6f528a9a96ebfe4fa4275e333eba82",
|
||||
"version": "0.5.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ let package = Package(
|
|||
.package(url: "https://github.com/JohnSundell/Splash.git", from: "0.16.0"),
|
||||
.package(
|
||||
url: "https://github.com/swiftwasm/WasmTransformer",
|
||||
.upToNextMinor(from: "0.4.1")
|
||||
.upToNextMinor(from: "0.5.0")
|
||||
),
|
||||
],
|
||||
targets: [
|
||||
|
|
|
@ -70,6 +70,10 @@ public final class Builder {
|
|||
})
|
||||
transformers.append(transformer.transform)
|
||||
}
|
||||
// Strip unnecessary autolink sections, which is only used at link-time
|
||||
transformers.append(CustomSectionStripper(stripIf: {
|
||||
$0 == ".swift1_autolink_entries"
|
||||
}).transform)
|
||||
|
||||
switch flavor.sanitize {
|
||||
case .stackOverflow:
|
||||
|
|
Loading…
Reference in New Issue