Skip to content

Commit 324a7c6

Browse files
committed
build: indicate that we are building ICU statically
We need to explicitly specify that we are building ICU statically as this changes the build model for Windows. Since the products are static and the targets are built statically, simply assume static builds rather than dynamic builds. This allows us to partially build this on Windows.
1 parent 0b214cc commit 324a7c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ let buildSettings: [CXXSetting] = [
77
.define("DEBUG", to: "1", .when(configuration: .debug)),
88
.define("U_SHOW_CPLUSPLUS_API", to: "1"),
99
.define("U_SHOW_INTERNAL_API", to: "1"),
10+
.define("U_STATIC_IMPLEMENTATION"),
1011
.define("U_TIMEZONE", to: "timezone"),
1112
.define("U_TIMEZONE_PACKAGE", to: "\"icutz44l\""),
1213
.define("FORTIFY_SOURCE", to: "2"),
@@ -101,4 +102,4 @@ fileprivate extension Array {
101102
me.append(contentsOf: other)
102103
return me
103104
}
104-
}
105+
}

0 commit comments

Comments
 (0)