mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 01:25:42 +00:00
Fix compilation on loongarch
This commit is contained in:
parent
f569cc56a9
commit
ed5d3d9f82
|
@ -911,7 +911,7 @@ if(SDL_ASSEMBLY)
|
||||||
|
|
||||||
if(SDL_LSX)
|
if(SDL_LSX)
|
||||||
cmake_push_check_state()
|
cmake_push_check_state()
|
||||||
list(APPEND CMAKE_REQUIRED_FLAGS "-mlsx")
|
set(CMAKE_REQUIRED_FLAGS "-mlsx")
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#ifndef __loongarch_sx
|
#ifndef __loongarch_sx
|
||||||
#error Assembler CPP flag not enabled
|
#error Assembler CPP flag not enabled
|
||||||
|
@ -928,7 +928,7 @@ if(SDL_ASSEMBLY)
|
||||||
|
|
||||||
if(SDL_LASX)
|
if(SDL_LASX)
|
||||||
cmake_push_check_state()
|
cmake_push_check_state()
|
||||||
list(APPEND CMAKE_REQUIRED_FLAGS "-mlasx")
|
set(CMAKE_REQUIRED_FLAGS "-mlasx")
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#ifndef __loongarch_asx
|
#ifndef __loongarch_asx
|
||||||
#error Assembler CPP flag not enabled
|
#error Assembler CPP flag not enabled
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#if SDL_HAVE_YUV
|
#if SDL_HAVE_YUV
|
||||||
#include "yuv_rgb.h"
|
#include "yuv_rgb.h"
|
||||||
|
#include "yuv_rgb_internal.h"
|
||||||
#include "SDL_cpuinfo.h"
|
#include "SDL_cpuinfo.h"
|
||||||
|
|
||||||
#ifdef __loongarch_sx
|
#ifdef __loongarch_sx
|
||||||
|
|
Loading…
Reference in a new issue