Skip to content

Commit

Permalink
Add arm64 builds for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
virusman committed Jun 1, 2022
1 parent 98827f5 commit 78d3124
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ jobs:
matrix:
configuration: [FastDebug, Release]
compiler: [clang]
arch: [x86_64]
arch: [x86_64, arm64]
name: Mac
runs-on: macos-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ jobs:
matrix:
configuration: [FastDebug, Release]
compiler: [clang]
arch: [x86_64]
arch: [x86_64, arm64]
name: Mac
needs: create_release
runs-on: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ jobs:
matrix:
configuration: [FastDebug, Release]
compiler: [clang]
arch: [x86_64]
arch: [x86_64, arm64]
name: Mac
runs-on: macos-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
matrix:
configuration: [Debug, Release]
compiler: [clang]
arch: [x86_64]
arch: [x86_64, arm64]
cmake_options: [""]
name: Mac
runs-on: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion lib/freetype.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

add_library(freetype INTERFACE)

if(PLATFORM_WINDOWS OR PLATFORM_MAC)
if(PLATFORM_WINDOWS)
# We use prebuilt binaries for windows and mac
get_prebuilt_path(PREBUILT_PATH)
set(FREETYPE_ROOT_DIR "${PREBUILT_PATH}/freetype")
Expand Down
2 changes: 2 additions & 0 deletions lib/libpng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ IF (FSO_BUILD_INCLUDED_LIBS OR NOT PNG_FOUND)
target_include_directories(png SYSTEM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

target_compile_definitions(png PRIVATE "_CRT_SECURE_NO_WARNINGS;$<$<CONFIG:Debug>:PNG_DEBUG=1>")
target_compile_definitions(png PRIVATE PNG_ARM_NEON_IMPLEMENTATION=0) # Disable NEON to fix Mac ARM builds
target_compile_definitions(png PRIVATE PNG_ARM_NEON_OPT=0)

IF(BUILD_SHARED_LIBS)
target_compile_definitions(png INTERFACE PNG_BUILD_DLL)
Expand Down

0 comments on commit 78d3124

Please sign in to comment.