Skip to content

Commit 73dd4b1

Browse files
Update build.c
1 parent c3de348 commit 73dd4b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.c

Lines changed: 3 additions & 3 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=12.0 .. && make crypto ssl");
78+
run("cd uWebSockets/uSockets/boringssl && mkdir -p x64 && cd x64 && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64 .. && 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,8 +154,8 @@ int main() {
154154
#ifdef IS_MACOS
155155

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

0 commit comments

Comments
 (0)