Switch to upstream nanors with native SIMD and GFNI runtime dispatching

This commit is contained in:
Cameron Gutman
2026-07-04 15:32:12 -04:00
parent 99c45d35ad
commit 1f764276e8
16 changed files with 12 additions and 5484 deletions
+5 -10
View File
@@ -17,6 +17,11 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ${CMAKE_POSITION_INDEPENDENT_CODE_BACKUP})
unset(CMAKE_POSITION_INDEPENDENT_CODE_BACKUP)
aux_source_directory(src SRC_LIST)
list(APPEND SRC_LIST
nanors/rs.c
nanors/deps/obl/oblas_common.c
nanors/deps/obl/oblas_lite.c
)
# Build shared library by default, but allows user override
if (NOT DEFINED BUILD_SHARED_LIBS)
@@ -112,13 +117,3 @@ target_include_directories(moonlight-common-c SYSTEM PRIVATE
)
target_compile_definitions(moonlight-common-c PRIVATE HAS_SOCKLEN_T)
# nanors
if (MSVC)
set_source_files_properties("${CMAKE_SOURCE_DIR}/src/rswrapper.c"
DIRECTORY "${CMAKE_SOURCE_DIR}")
else()
set_source_files_properties("${CMAKE_SOURCE_DIR}/src/rswrapper.c"
DIRECTORY "${CMAKE_SOURCE_DIR}"
PROPERTIES COMPILE_FLAGS "-ftree-vectorize -funroll-loops")
endif()