Commit Graph

14 Commits

Author SHA1 Message Date
Rick van Voorden
f8ae46b3f3 [inclusive-language] changed sanity to soundness 2024-01-25 18:18:02 -08:00
Alastair Houghton
e5ece81cc9 [Freestanding] Remove uses of stat() and dlsym().
We shouldn't be using stat() or dlsym() in the freestanding
runtime.

rdar://111214571
rdar://106555012
2023-06-23 17:05:59 +01:00
Kuba (Brecka) Mracek
b58818f153 To be able to correctly exercise Concurrency on freestanding, default to using 'pthread' threading package (#65329)
To be able to correctly exercise Concurrency on freestanding, default to using 'pthread' threading package

rdar://102259828
2023-04-21 14:47:51 -07:00
Alastair Houghton
5b3967bab2 [Backtracing][Freestanding] Add _stat to the list of expected symbols.
The code in `stdlib/runtime/Paths.cpp` will use `stat()` if it finds it,
but not otherwise.  As a result, it can turn up in the symbols in the
OSS freestanding build.

rdar://106529399
2023-03-10 09:27:24 +00:00
Daniel Duan
3dfc40898c [NFC] Remove Python 2 imports from __future__ (#42086)
The `__future__` we relied on is now,  where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html):

* absolute_import
* print_function
* unicode_literals
* division

These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
Kuba (Brecka) Mracek
2fa79689fa Turn build-swift-stdlib-static-print on for freestanding preset (#41260) 2022-02-09 05:41:04 -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
Alejandro Alonso
21ee3a5e0f Drop ICU
update freestanding deps
2021-11-30 13:53:08 -08:00
Kuba (Brecka) Mracek
11fb457e1b Add 'fflush' into expected freestanding dependency list (#40301) 2021-11-29 08:47:13 -08:00
Kuba (Brecka) Mracek
34c07d0507 Remove _NSGetArgc/_NSGetArgv from the expected symbol list for 'freestanding' (#39716) 2021-10-13 14:56:05 -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
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
Kuba Mracek
89c6d4530d Ensure that we only depend on a small expected set of external symbols in the freestanding stdlib 2021-10-01 07:54:30 -07:00