Commit Graph

7 Commits

Author SHA1 Message Date
Saleem Abdulrasool
c3604743de Runtimes: tweak incorrect case (NFC)
This adjusts the spelling for the architecture specifier for the Windows
compilers. Take the opportunity to further restrict the compiler check
to micro-optimize the CMake configure phase.
2025-03-08 08:22:15 -08:00
Saleem Abdulrasool
40bf17c00d build: only apply -mcx16 on X86 CPUs
This is required to support compilation for non-X86 architectures.
2025-03-03 15:51:43 -08:00
Evan Wilde
ebc0a37760 Set Swift language version to 5
The stdlib needs to build in Swift-5 mode, and ensure that
`-swift-verion 5` be included in the commandline explicitly. While the
compiler defaults to 5 mode, if it's not included explicitly, it won't
be included in the swift interface, which then means that modules that
import it will influence how the textual interface is processed.
The interface for the stdlib must be processed in the Swift 5 language
mode due to sendability. Set it explicitly to ensure that importing
modules do not change the Swift language mode.

Fixes: rdar://145118843
2025-02-19 16:57:43 -08:00
Saleem Abdulrasool
cc27fd0c98 Core: check for -mcx16 flag
The Swift runtime requires the CMPXCHG16B ISA extension on x86. This is
controlled by the `-mcx16` flag when targeting the CPU baseline that we
use. Add a check and pass along the flag to repair the build.
2024-12-13 13:59:41 -08:00
Justice Adams
f1f3604cca remove cmake color diagnostic flags (#78098) 2024-12-11 13:37:59 -08:00
Evan Wilde
03ba118bf3 Add swiftCore library
This patch hooks up the swiftCore library build and gets it installing.
This means that we have library evolution hooked up and vector types.

Building it dynamically found that we had duplicate symbols, so fixed
the swiftDemanglingCR library.

Needed to hook up the availability macros.

The flag configuration is for macOS, so we'll need to go through and
figure out what it should look like for the other platforms too.
2024-11-06 21:27:53 -08:00
Evan Wilde
46dfee25d1 Get swiftLLVMSupport building
This patch gets the LLVM Support object files building.
2024-11-05 08:19:43 -08:00