Build: Fix Loongson MMI detection with -Werror

If compiler warnings are treated as errors, then the apostrophe in
"Loongson MMI can't work with MIPS Release 6+" triggers a compiler
warning that causes the HAVE_MMI test to fail.  Surrounding the error
message with quotes fixes the issue.
This commit is contained in:
DRC
2025-09-10 13:06:51 -04:00
parent 4e151a4ad9
commit 42d2a243b7

View File

@@ -448,7 +448,7 @@ set(CMAKE_REQUIRED_FLAGS -Wa,-mloongson-mmi,-mloongson-ext)
check_c_source_compiles("
#if !(defined(__mips__) && __mips_isa_rev < 6)
#error Loongson MMI can't work with MIPS Release 6+
#error \"Loongson MMI can't work with MIPS Release 6+\"
#endif
int main(void) {
int c = 0, a = 0, b = 0;