Alejandro Alonso
b97795df26
Merge pull request #41158 from Azoy/fix-linux-warnings
...
[cmake] Fix availability macro warnings when bootstrapping
2022-02-02 22:22:59 -08:00
Kuba (Brecka) Mracek
e6a1e23a9f
Add SWIFT_STDLIB_ENABLE_VECTOR_TYPES to take away support for SIMD ( #41149 )
2022-02-02 12:06:45 -08:00
Alejandro Alonso
531202dde3
Fix warnings for availability macros
2022-02-02 11:09:30 -08:00
nate-chandler
ac30d865b3
Merge pull request #40556 from nate-chandler/copy_propagation/always-on
...
Always enable copy propagation.
2022-01-14 12:22:04 -08:00
Eric Miotto
b0ed4900b7
Merge pull request #40768 from edymtt/polish-bitcode-conditions
...
[gardening] align platform checks when enabling bitcode inclusion
2022-01-10 12:14:44 -08:00
Eric Miotto
3b82dc008c
[gardening] align platform checks when enabling bitcode inclusion
...
* use quoted arguments when referencing "SWIFTLIB_SINGLE_SDK"
* break the first condition on multiple lines
This will make changes to these conditions easier to review.
2022-01-07 12:15:14 -08:00
Robert Widmann
9429514268
Merge pull request #40659 from buttaface/stdlib-remove-icu
...
[build] Remove last vestiges of ICU for anything other than Foundation
2022-01-07 00:36:13 -08:00
David Smith
48399afb03
Merge branch 'main' into unicodectomy
2022-01-03 22:57:37 -08:00
Butta
2890d15da7
[build] Remove last vestiges of ICU for anything other than Foundation
2021-12-25 21:16:34 +05:30
Kuba (Brecka) Mracek
663a6fb771
Introduce SWIFT_STDLIB_HAS_TYPE_PRINTING flag to remove the ability to print types at runtime (to save codesize) ( #40649 )
2021-12-21 17:47:54 -08:00
David Smith
f1a5e27821
Add a build flag to disable building Unicode support
2021-12-21 17:26:15 -08:00
Kuba (Brecka) Mracek
f7291f0b21
Add SWIFT_STDLIB_HAS_LOCALE CMake to build stdlib without locale.h and locale based float parsing ( #40405 )
2021-12-21 11:22:54 -08:00
Nate Chandler
b887def407
[stdlib] Only emit lexical markers.
...
Don't use lexical lifetimes fully in the stdlib for now.
2021-12-16 15:29:34 -08:00
Kuba Mracek
d441f85358
Rename SWIFT_ENABLE_COMPATIBILITY_OVERRIDES -> SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT and avoid building more back-deployment stdlib parts when not set
2021-12-14 09:59:44 -08:00
Alejandro Alonso
86fec4011d
Cleanup more of the build from Saleem's comments
2021-11-30 15:01:20 -08:00
Alejandro Alonso
21ee3a5e0f
Drop ICU
...
update freestanding deps
2021-11-30 13:53:08 -08:00
buttaface
30c292ca87
[android] Update to NDK 23b ( #39921 )
...
The latest Long Term Support NDK finally removed binutils, including the bfd/gold
linkers and libgcc. This simplifies our Android support, including making lld the
default linker for Android. Disable three reflection tests that now fail, likely
related to issues with swift-reflection-dump and switching to lld.
2021-11-17 20:58:42 -08:00
Kuba (Brecka) Mracek
c63a93c37a
Add SWIFT_STDLIB_EXTRA_SWIFT_COMPILE_FLAGS and SWIFT_STDLIB_EXTRA_C_COMPILE_FLAGS CMake options ( #40171 )
2021-11-15 10:27:50 -08:00
Erik Eckstein
09552abc44
libswift: improve the bootstrapping-with-hostlibs build mode
...
Don't build the swiftCore module files in the bootstrapping phases. Instead use the module files in the SDK.
This reduces the build time overhead from 3min -> 30seconds.
2021-11-05 18:32:25 +01:00
Karoy Lorentey
2732765096
[CMake] Introduce availability macros for all known stdlib releases
...
Introduce "SwiftStdlib x.y"-style availability macros for all known releases of the stdlib, adding them to the swift flags of all Swift libraries and tests.
2021-10-28 18:31:54 -07:00
Doug Gregor
c9e1032480
Remove underscores from CFBundleIdentifier of libraries.
...
Underscores aren't permitted in these identifiers.
Fixes rdar://84645973.
2021-10-26 20:57:19 -07:00
Saleem Abdulrasool
15a5d2c54b
Revert "[android] Update to NDK 23"
2021-10-16 11:07:23 -07:00
swift-ci
46f3cc9dd8
Merge pull request #39045 from buttaface/android-ndk-23
2021-10-15 20:55:19 -07:00
Kuba (Brecka) Mracek
99a24d47be
Introduce a CMake flag to disable fast-path context descriptor lookup based on short manglings ( #39729 )
2021-10-14 08:08:07 -07:00
Kuba (Brecka) Mracek
557bf685be
Don't include support for old mangling in runtimes without ObjC interop ( #39675 )
2021-10-13 19:47:05 -07:00
Kuba (Brecka) Mracek
5ff64f8443
Introduce a CMake option to disable MetadataAllocator and use malloc+free instead, use it for freestandning preset ( #39678 )
2021-10-12 16:20:08 -07:00
Kuba (Brecka) Mracek
1147d08ae3
Disable stable ABI on freestanding stdlib ( #39674 )
2021-10-12 15:25:57 -07:00
Kuba (Brecka) Mracek
c2c1bfb053
Add SWIFT_STDLIB_HAS_ENVIRON to remove usage of getenv/environ from stdlib ( #39599 )
2021-10-12 07:16:36 -07:00
Kuba (Brecka) Mracek
653642df75
Add a SWIFT_STDLIB_HAS_DARWIN_ASL config flag to allow removing asl_log() usage in freestanding build ( #39584 )
2021-10-12 07:14:33 -07:00
Butta
7fa1b4b2ac
[android] Update to NDK 23
...
The latest Long Term Support NDK finally removed binutils, including the bfd/gold
linkers and libgcc. This simplifies our Android support, including making lld the
default linker for Android. Disable three reflection tests that now fail, likely
related to issues with swift-reflection-dump and switching to lld.
Also, add the libatomic dependency for Android armv7, just as on linux.
2021-10-12 12:37:01 +05:30
Kuba (Brecka) Mracek
ca0dff803b
Turn existing ifdefs around backtrace() API into a CMake SWIFT_SUPPORTS_BACKTRACE_REPORTING flag ( #39598 )
2021-10-06 14:46:08 -07:00
Meghana Gupta
83c023446a
Use -enable-ossa-modules for all of stdlib/public ( #39478 )
...
With this, even non-transparent functions will have their ownership eliminated later in the pipeline
2021-09-30 10:20:08 -07:00
Kuba (Brecka) Mracek
c2a92722c6
Split the NO_DYLD CMake flag into separate HAS_DLADDR and STATIC_IMAGE_INSPECTION flags ( #39339 )
2021-09-29 19:57:05 -07:00
Erik Eckstein
af71088d29
libswift: bootstrapping build
...
Adding build modes for libswift: off, hosttools, bootstrapping, bootstrapping-with-hostlibs
The two bootstrapping modes are new. For details see libswift/README.md
2021-09-28 18:51:42 +02:00
Alastair Houghton
8be084f30a
Merge pull request #39187 from al45tair/problem/79725187
...
[Demangler] Improve remangler error handling
2021-09-27 17:03:49 +01:00
Kuba (Brecka) Mracek
6766824d51
Add a SWIFT_STDLIB_HAS_STDIN flag to compile out the Swift.readLine() API from the stdlib (for the 'freestanding' preset) ( #39332 )
2021-09-17 10:42:14 -07:00
Argyrios Kyrtzidis
90448e77e1
[AddSwiftStdlib.cmake] Add the info.plist file as link dependency
2021-09-12 16:17:47 -07:00
Kuba (Brecka) Mracek
404badb49a
Introduce SWIFT_ENABLE_REFLECTION to turn on/off the support for Mirrors and reflection ( #33617 )
2021-09-08 13:08:13 -07:00
Alastair Houghton
227b438963
[Demangling] Added DEMANGLER_ASSERT to replace assert() calls.
...
This returns an error code if we're in the runtime, rather than assert()ing.
rdar://79725187
2021-09-06 17:49:50 +01:00
Arnold Schwaighofer
a864d4ed04
Don't enable GlobalISel on arm64e
...
It is not well supported
rdar://82082527
2021-08-30 13:06:49 -07:00
Doug Gregor
3f749dc13b
Add an option to build the concurrency library for back deployment.
...
Introduce an additional build product to build-script to build
back-deployable concurrency libraries. These libraries would need to
be embedded in apps deployed prior to macOS 12/iOS 15 to support
concurrency.
The built-script option `--back-deploy-concurrency` can be provided to
build these back-deployment libraries. They are built in addition to
the normal concurrency libraries, as a separate product that installs
into `lib/swift-5.5/<platform>` within the toolchain. The macro
`SWIFT_CONCURRENCY_BACK_DEPLOYMENT` is set when building the
concurrency library, so that we can adapt the implementation to older
OS's.
2021-08-26 08:49:43 -07:00
Kuba (Brecka) Mracek
bcbe8e7bff
Remove SWIFTLIB_SINGLE_TARGET_LIBRARY ( #38978 )
...
* Remove SWIFTLIB_SINGLE_TARGET_LIBRARY
* Use NOSWIFTRT on BlocksRuntime
2021-08-24 07:46:43 -07:00
Kuba (Brecka) Mracek
aaff37ffb8
Add a SWIFT_STDLIB_HAS_DARWIN_LIBMALLOC flag to allow/disallow uses of Darwin libmalloc APIs (malloc_default_zone, malloc_zone_malloc, etc.) ( #33812 )
2021-08-23 19:37:43 -07:00
Kuba (Brecka) Mracek
c079c0897b
Split SWIFT_DARWIN_PLATFORMS and SWIFT_APPLE_PLATFORMS in CMake. SWIFT_APPLE_PLATFORMS may contain 'FREESTANDING' when building the freestanding SDK and SWIFT_FREESTANDING_FLAVOR is set to 'apple'. ( #38997 )
2021-08-23 19:16:28 -07:00
Kuba (Brecka) Mracek
47f156fb21
Apply the CMake Apple Silicon workaround for the 'FREESTANDING' SDK too ( #38956 )
2021-08-21 14:31:07 -07:00
Kuba (Brecka) Mracek
14b3b38c53
Make SWIFT_STDLIB_ENABLE_LTO flag apply LTO to C/C++ compile flags too ( #38959 )
2021-08-21 14:30:42 -07:00
Kuba (Brecka) Mracek
2fad6265fe
When building stdlib, pass -prespecialize-generic-metadata from CMake, and respect the flag in IRGenModule::shouldPrespecializeGenericMetadata ( #38946 )
2021-08-20 07:58:39 -07:00
Arnold Schwaighofer
71f64ac348
Add option to enable global-isel on arm64 archs
...
LLVM will eventually switch over to using global-isel on arm64 archs.
Setting this option (SWIFT_ENABLE_GLOBAL_ISEL_ARM64) can be used to experiment
with that in Swift before the switch happens.
2021-08-17 13:41:46 -07:00
Argyrios Kyrtzidis
35f0744b1c
[CMake] Declare the precise dependencies of the gyb custom command invocations
2021-08-10 13:51:54 -07:00
Eric Miotto
ec912086b8
[gardening] break long comment lines ( #38444 )
...
Takes review feedback from #38415
2021-07-19 07:50:19 -07:00