From 9cdb8099f8e238df3586f836bc91d8c3e6fa47b2 Mon Sep 17 00:00:00 2001 From: dcvz Date: Wed, 22 May 2024 01:01:11 +0200 Subject: [PATCH] Fix mistake --- .github/workflows/validate.yml | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.")