diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 15cb5de..ef09c15 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -84,7 +84,7 @@ jobs: # enable ccache export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" - cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER=clang++-15 -DCMAKE_C_COMPILER=clang-15 -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build -DSUPPORTS_SSE42=TRUE + cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER=clang++-15 -DCMAKE_C_COMPILER=clang-15 -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B cmake-build -DSUPPORTS_SSE42=ON cmake --build cmake-build --config ${{ matrix.type }} --target Zelda64Recompiled -j 8 - name: Prepare Archive run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index 756f505..3b89925 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ endif() include(cmake/ZREDetectSSE42.cmake) include(cmake/ZREDetectNEON.cmake) -if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64" AND NOT SUPPORTS_AVX) +if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64" AND NOT SUPPORTS_SSE42) message(FATAL_ERROR "FATAL: A CPU supporting SSE4.2 is required.") elseif(NOT SUPPORTS_NEON) message(FATAL_ERROR "FATAL: A CPU supporting NEON is required.")