From fe1e5c643c6ab4bbfeb1af06f1f13492722825b9 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Mon, 3 Jun 2024 23:52:43 +0200 Subject: [PATCH] Temporarily disable version checks to get further --- src/native/libs/CMakeLists.txt | 2 +- src/native/libs/configure.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/native/libs/CMakeLists.txt b/src/native/libs/CMakeLists.txt index eb1df8fa2a210..f9d1b364903f7 100644 --- a/src/native/libs/CMakeLists.txt +++ b/src/native/libs/CMakeLists.txt @@ -33,7 +33,7 @@ if (CLR_CMAKE_TARGET_UNIX OR CLR_CMAKE_TARGET_BROWSER OR CLR_CMAKE_TARGET_WASI) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wno-declaration-after-statement") if (CLR_CMAKE_TARGET_BROWSER) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pre-c11-compat") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pre-c11-compat -Wno-version-check") endif() add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/Common) diff --git a/src/native/libs/configure.cmake b/src/native/libs/configure.cmake index d15a5ff74bc96..a9904e323bd42 100644 --- a/src/native/libs/configure.cmake +++ b/src/native/libs/configure.cmake @@ -616,6 +616,7 @@ elseif(CLR_CMAKE_TARGET_ANDROID) set(HAVE_CLOCK_REALTIME 1) elseif(CLR_CMAKE_TARGET_BROWSER OR CLR_CMAKE_TARGET_WASI) set(HAVE_FORK 0) + add_compile_options(-Wno-version-check) else() check_symbol_exists( aligned_alloc