build_mac.sh 713 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. export CXX=clang++
  7. # using -DISA_AVX2=ON enables build for x86_64
  8. # using -DISA_NEON=ON enables build for arm64
  9. # to build arm64 requires xcode 12.3 and macos 11
  10. # Note: on x86/x64 platforms, O3DE requires a minimum of SSE 4.1, so we do request this.
  11. cmake -S temp/src -B temp/build -G "Unix Makefiles" \
  12. -DISA_SSE41=ON \
  13. -DCMAKE_TOOLCHAIN_FILE=../../../../Scripts/cmake/Platform/Mac/Toolchain_mac.cmake || exit $?
  14. cmake --build temp/build --config Release --parallel || exit $?