Update minimum_cmake_required to match version used in CI (#679)

- Update minimum_cmake_required to match version used in CI
  - We should match the minimum version that we test against

- Ensure ".S" files are treated as assembly.
This commit is contained in:
David Galiffi
2025-08-21 15:56:47 -04:00
committed by GitHub
parent c7b9533836
commit 847580dd9e
25 changed files with 28 additions and 25 deletions
@@ -5,6 +5,9 @@ set(CMAKE_C_STANDARD 11)
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_C_STANDARD_REQUIRED ON)
# Ensure .S files are compiled as assembly
set(NEED_NATIVE_ASSEMBLER ON)
# ------------------------------------------------------------------------------#
# target sources
# ------------------------------------------------------------------------------#
@@ -73,7 +76,7 @@ set(RT_STATIC_ONLY_SRC_LIST_aarch64 src/RTstatic_ctors_dtors-aarch64.c)
# that gcc can handle .S.
enable_language(ASM)
file(GLOB SRC_ASSEMBLY "src/*.S")
if(NEED_NATIVE_ASSEMBER)
if(NEED_NATIVE_ASSEMBLER)
set_source_files_properties(${SRC_ASSEMBLY} PROPERTIES LANGUAGE ASM)
else()
set_source_files_properties(${SRC_ASSEMBLY} PROPERTIES LANGUAGE C)