Skip to content

Commit

Permalink
Fix compilation on loongarch
Browse files Browse the repository at this point in the history
  • Loading branch information
HecaiYuan authored and slouken committed Jan 22, 2024
1 parent f569cc5 commit ed5d3d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ if(SDL_ASSEMBLY)

if(SDL_LSX)
cmake_push_check_state()
list(APPEND CMAKE_REQUIRED_FLAGS "-mlsx")
set(CMAKE_REQUIRED_FLAGS "-mlsx")
check_c_source_compiles("
#ifndef __loongarch_sx
#error Assembler CPP flag not enabled
Expand All @@ -928,7 +928,7 @@ if(SDL_ASSEMBLY)

if(SDL_LASX)
cmake_push_check_state()
list(APPEND CMAKE_REQUIRED_FLAGS "-mlasx")
set(CMAKE_REQUIRED_FLAGS "-mlasx")
check_c_source_compiles("
#ifndef __loongarch_asx
#error Assembler CPP flag not enabled
Expand Down
2 changes: 1 addition & 1 deletion src/video/yuv2rgb/yuv_rgb_lsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#if SDL_HAVE_YUV
#include "yuv_rgb.h"

#include "yuv_rgb_internal.h"
#include "SDL_cpuinfo.h"

#ifdef __loongarch_sx
Expand Down

0 comments on commit ed5d3d9

Please sign in to comment.