Skip to content

Commit

Permalink
Update build.c
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB authored Aug 3, 2024
1 parent d3945d3 commit f4714f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void build_boringssl(const char *arch) {

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

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

/* Apple special case */
build("clang -mmacosx-version-min=12.0",
"clang++ -stdlib=libc++ -mmacosx-version-min=12.0",
build("clang -mmacosx-version-min=11.0",
"clang++ -stdlib=libc++ -mmacosx-version-min=11.0",
"-undefined dynamic_lookup",
OS,
X64);
Expand Down

0 comments on commit f4714f9

Please sign in to comment.