Skip to content

Commit 4fcccfd

Browse files
committed
[swift-stdlib-tool] fix inverted logic
1 parent 2b41bee commit 4fcccfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/swift-stdlib-tool/swift-stdlib-tool.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1226,13 +1226,13 @@ int main(int argc, const char *argv[]) {
12261226
// and $build_dir/$unsigned_frameworks
12271227
if (copy) {
12281228
copyLibraries(dst_dir, swiftLibs, stripBitcode);
1229-
if (unsigned_dst_dir.empty()) {
1229+
if (!unsigned_dst_dir.empty()) {
12301230
// Never strip bitcode from the unsigned libraries.
12311231
// Their existing signatures must be preserved.
12321232
copyLibraries(unsigned_dst_dir, swiftLibs, false);
12331233
}
12341234

1235-
if (resource_dst_dir.empty()) {
1235+
if (!resource_dst_dir.empty()) {
12361236
// Never strip bitcode from resources libraries, for
12371237
// the same reason as the libraries copied to
12381238
// unsigned_dst_dir.
@@ -1242,7 +1242,7 @@ int main(int argc, const char *argv[]) {
12421242

12431243
// Codesign the Swift libraries in $build_dir/$frameworks
12441244
// but not the libraries in $build_dir/$unsigned_frameworks.
1245-
if (ident.empty()) {
1245+
if (!ident.empty()) {
12461246
// Swift libraries that are up-to-date get codesigned anyway
12471247
// (in case options changed or a previous build was incomplete).
12481248
// We do employ an optimization, however, if resigning the dylib

0 commit comments

Comments
 (0)