···2929#-----------------------------------------------------------------------------
3030project(zstd
3131 VERSION "${ZSTD_FULL_VERSION}"
3232- LANGUAGES C ASM # Main library is in C and ASM
3232+ LANGUAGES C # Main library is in C and ASM, ASM is enabled conditionally
3333 HOMEPAGE_URL "${zstd_HOMEPAGE_URL}"
3434 DESCRIPTION "${zstd_DESCRIPTION}"
3535)
+2-1
vendor/git/zstd-c/build/cmake/lib/CMakeLists.txt
···77# in the COPYING file in the root directory of this source tree).
88# ################################################################
991010-project(libzstd C ASM)
1010+project(libzstd C) # ASM language is conditionally enabled where supported
11111212set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
1313option(ZSTD_BUILD_STATIC "BUILD STATIC LIBRARIES" ON)
···4040 add_compile_options(-DZSTD_DISABLE_ASM)
4141else ()
4242 if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|AMD64.*|x86_64.*|X86_64.*" AND ${ZSTD_HAS_NOEXECSTACK})
4343+ enable_language(ASM)
4344 set(DecompressSources ${DecompressSources} ${LIBRARY_DIR}/decompress/huf_decompress_amd64.S)
4445 else()
4546 add_compile_options(-DZSTD_DISABLE_ASM)