Commit Graph

23 Commits

Author SHA1 Message Date
Michael Gottesman
8437819b5a [CMake] Revert recent changes.
These changes caused a number of issues:

1. No debug info is emitted when a release-debug info compiler is built.
2. OS X deployment target specification is broken.
3. Swift options were broken without any attempt any recreating that
functionality. The specific option in question is --force-optimized-typechecker.

Such refactorings should be done in a fashion that does not break existing
users and use cases.

This reverts commit e6ce2ff388.
This reverts commit e8645f3750.
This reverts commit 89b038ea7e.
This reverts commit 497cac64d9.
This reverts commit 953ad094da.
This reverts commit e096d1c033.

rdar://30549345
2017-02-15 22:26:06 -08:00
Chris Bieneman
e096d1c033 [CMake] Simplify add_swift_library
This patch splits add_swift_library into two functions one which handles
the simple case of adding a library that is part of the compiler being
built and the second handling the more complicated case of "target"
libraries, which may need to build for one or more targets.

The new add_swift_library is built using llvm_add_library, which re-uses
LLVM's CMake modules. In adapting to use LLVM's modules some of
add_swift_library's named parameters have been removed and
LINK_LIBRARIES has changed to LINK_LIBS, and LLVM_LINK_COMPONENTS
changed to LINK_COMPONENTS.

This patch also cleans up libswiftBasic's handling of UUID library and
headers, and how it interfaces with gyb sources.

add_swift_library also no longer has the FILE_DEPENDS parameter, which
doesn't matter because llvm_add_library's DEPENDS parameter has the same
behavior.
2017-02-14 14:28:10 -08:00
Brian Gesiak
328de9e280 [SR-1738] add_swift_library takes SHARED/STATIC arg
As a first step to allowing the build script to build *only*
static library versions of the stdlib, change `add_swift_library`
such that callers must pass in `SHARED`, `STATIC`, or `OBJECT_LIBRARY`.

Ideally, only these flags would be used to determine whether to
build shared, static, or object libraries, but that is not currently
the case -- `add_swift_library` also checks whether the library
`IS_STDLIB` before performing certain additional actions. This will be
cleaned up in a future commit.
2016-06-16 13:15:58 -04:00
Jordan Rose
a4a4a80ac4 [CMake] Don't pass -sil-serialize-all under SWIFT_STDLIB_ENABLE_RESILIENCE.
Thanks, Slava!
2016-02-10 10:29:01 -08:00
Dave Abrahams
d576eb9e63 [stdlib] Merge experimental inheritance support for mirrors
Swift SVN r27934
2015-04-29 22:21:46 +00:00
Ted Kremenek
ea498e9fef Revert "[stdlib] Merge experimental inheritance support for mirrors"
This is breaking the Jenkins build.

Swift SVN r27919
2015-04-29 20:27:36 +00:00
Dave Abrahams
9407cc5ab8 [stdlib] Merge experimental inheritance support for mirrors
Swift SVN r27918
2015-04-29 20:13:49 +00:00
Enrico Granata
4781414e7a Remove SwiftExperimental.dump() - I am iterating on this as part of LLDB
Swift SVN r27882
2015-04-28 21:12:00 +00:00
Enrico Granata
2218118cd9 This is a version of dump() based on the new Mirror API
This is meant as both a porting effort and as an experimental bench for things the debugger might want dump() to do



Swift SVN r27697
2015-04-24 18:28:25 +00:00
Dave Abrahams
754414c02d [stdlib] Copy mirrors back to SwiftExperimental
So we can do API-breaking work

Swift SVN r27494
2015-04-20 21:58:19 +00:00
Dmitri Hrybenko
f1de46300a stdlib: move readLine() API to the core standard library
This API has passed API review.

rdar://15911365

Swift SVN r27287
2015-04-14 20:30:12 +00:00
Dmitri Hrybenko
9c03811987 stdlib: add initializers from String to integer and floating-point types
rdar://17232531

Swift SVN r27159
2015-04-09 03:20:41 +00:00
Dave Abrahams
367b2e40f0 [stdlib] Mirror -> public/core
The new mirror design passed our API review and blocking bugs have been
fixed/worked-around, so integrating it into the core standard library.

Swift SVN r27082
2015-04-07 15:33:49 +00:00
Dave Abrahams
4ba169ae16 [stdlib] ExistentialCollection -> public/core
It passed our API review so integrating it into the core standard
library.

Swift SVN r27079
2015-04-07 15:12:10 +00:00
Michael Gottesman
d53bff777b Revert "[stdlib] ExistentialCollection -> public/core"
This reverts commit r26888. Trying to fix the build.

Swift SVN r26911
2015-04-02 22:55:29 +00:00
Dave Abrahams
910c895346 [stdlib] ExistentialCollection -> public/core
It passed our API review so integrating it into the core standard
library.

Swift SVN r26888
2015-04-02 20:17:53 +00:00
Dave Abrahams
f5fb694b49 [stdlib] build SwiftExperimental with -parse-stdlib
fixes rdar://20260634

Swift SVN r26506
2015-03-24 23:55:54 +00:00
Dave Abrahams
50c6e936d4 [stdlib] NewMirrors => SwiftExperimental
Swift SVN r26359
2015-03-20 18:17:55 +00:00
Dave Abrahams
dedbc72aed [stdlib] ExistentialCollection => SwiftExperimental
This sets us up to use it in the mirrors prototype.
TODO: doc comments

Swift SVN r26314
2015-03-19 20:53:25 +00:00
Dmitri Hrybenko
fae641f3cd Move readLine() to SwiftExperimental
This API did not go through API review.

Swift SVN r25904
2015-03-10 00:04:02 +00:00
Dmitri Hrybenko
b13758e6f4 Move floating point parsing APIs to SwiftExperimental
These APIs did not go through API review.

Swift SVN r25891
2015-03-09 19:04:22 +00:00
Dmitri Hrybenko
5ca75b75e3 Move integer parsing APIs to SwiftExperimental
These APIs did not go through API review.

Swift SVN r25890
2015-03-09 19:04:21 +00:00
Dmitri Hrybenko
350248dae5 Reorganize the directory structure under 'stdlib'
The standard library has grown significantly, and we need a new
directory structure that clearly reflects the role of the APIs, and
allows future growth.

See stdlib/{public,internal,private}/README.txt for more information.

Swift SVN r25876
2015-03-09 05:26:05 +00:00