@@ -1226,13 +1226,13 @@ int main(int argc, const char *argv[]) {
1226
1226
// and $build_dir/$unsigned_frameworks
1227
1227
if (copy) {
1228
1228
copyLibraries (dst_dir, swiftLibs, stripBitcode);
1229
- if (unsigned_dst_dir.empty ()) {
1229
+ if (! unsigned_dst_dir.empty ()) {
1230
1230
// Never strip bitcode from the unsigned libraries.
1231
1231
// Their existing signatures must be preserved.
1232
1232
copyLibraries (unsigned_dst_dir, swiftLibs, false );
1233
1233
}
1234
1234
1235
- if (resource_dst_dir.empty ()) {
1235
+ if (! resource_dst_dir.empty ()) {
1236
1236
// Never strip bitcode from resources libraries, for
1237
1237
// the same reason as the libraries copied to
1238
1238
// unsigned_dst_dir.
@@ -1242,7 +1242,7 @@ int main(int argc, const char *argv[]) {
1242
1242
1243
1243
// Codesign the Swift libraries in $build_dir/$frameworks
1244
1244
// but not the libraries in $build_dir/$unsigned_frameworks.
1245
- if (ident.empty ()) {
1245
+ if (! ident.empty ()) {
1246
1246
// Swift libraries that are up-to-date get codesigned anyway
1247
1247
// (in case options changed or a previous build was incomplete).
1248
1248
// We do employ an optimization, however, if resigning the dylib
@@ -1269,7 +1269,7 @@ int main(int argc, const char *argv[]) {
1269
1269
// to preserve it in case it does not change. We can use
1270
1270
// this to avoid unnecessary copies during delta installs
1271
1271
// to devices.
1272
- const auto dst = dst_dir + " /" + lib;
1272
+ const auto dst = dst_dir + " /" + filename ( lib) ;
1273
1273
const auto oldSignatureData = query_code_signature (dst);
1274
1274
const char *tmpFilePath = 0 ;
1275
1275
if (!oldSignatureData.empty ()) {
0 commit comments