Skip to content

Commit 43e7e65

Browse files
committed
macOS build fixes
1 parent f4714f9 commit 43e7e65

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

build.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void build_boringssl(const char *arch) {
7575

7676
#ifdef IS_MACOS
7777
/* Build for x64 (the host) */
78-
run("cd uWebSockets/uSockets/boringssl && mkdir -p x64 && cd x64 && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 .. && make crypto ssl");
78+
run("cd uWebSockets/uSockets/boringssl && mkdir -p x64 && cd x64 && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 .. && make crypto ssl");
7979

8080
/* Build for arm64 (cross compile) */
8181
run("cd uWebSockets/uSockets/boringssl && mkdir -p arm64 && cd arm64 && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 .. && make crypto ssl");
@@ -154,15 +154,15 @@ int main() {
154154
#ifdef IS_MACOS
155155

156156
/* Apple special case */
157-
build("clang -mmacosx-version-min=11.0",
158-
"clang++ -stdlib=libc++ -mmacosx-version-min=11.0",
157+
build("clang -mmacosx-version-min=12.0",
158+
"clang++ -stdlib=libc++ -mmacosx-version-min=12.0",
159159
"-undefined dynamic_lookup",
160160
OS,
161161
X64);
162162

163-
/* Try and build for arm64 macOS 11 */
164-
build("clang -target arm64-apple-macos11",
165-
"clang++ -stdlib=libc++ -target arm64-apple-macos11",
163+
/* Try and build for arm64 macOS 12 */
164+
build("clang -target arm64-apple-macos12",
165+
"clang++ -stdlib=libc++ -target arm64-apple-macos12",
166166
"-undefined dynamic_lookup",
167167
OS,
168168
ARM64);

uWebSockets

0 commit comments

Comments
 (0)