Files
swift-mirror/Runtimes/Supplemental/cmake/modules/AsmSupport.cmake
Eric Miotto fa725278e4 Runtimes: add support for Runtime module
* take the chance to rename the containing folder, as in this context it
  should be clear we are talking about the Runtime module and not the
  Swift runtime
* this will fail to build for Apple platforms until we land #84388 -- to
  signal this, comment the invocations that would add the dependency on
  the Darwin overlay
* piggyback a fix to ensure we rebuild always all the external projects
  in the Supplemental superbuild used in macOS PR testing

Addresses rdar://160774902
2025-09-19 05:12:09 -07:00

16 lines
396 B
CMake

macro(enable_asm_language)
# On Windows, use MASM or MARMASM
set(SWIFT_ASM_DIALECT ASM)
set(SWIFT_ASM_EXT S)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64")
set(SWIFT_ASM_DIALECT ASM_MARMASM)
else()
set(SWIFT_ASM_DIALECT ASM_MASM)
endif()
set(SWIFT_ASM_EXT asm)
endif()
enable_language(${SWIFT_ASM_DIALECT})
endmacro()