Commit Graph

14 Commits

Author SHA1 Message Date
AlexDenisov
a5f2f76716 CMake: expose Swift version through CMakeConfig.cmake (#67152)
Rationale: we are using Swift compiler as a library in a downstream project and having these exposed would streamline version detection for our use case.
Additionally, this PR makes CMake config a bit more uniform with LLVM/Clang configs.
2023-07-22 13:12:15 -07:00
Erik Eckstein
3d33f11e6c cmake/build-script: rename the libswift option to "bootstrapping"
In cmake, rename LIBSWIFT_BUILD_MODE to BOOTSTRAPPING_MODE.
Also, rename the lit feature "libswift" to "swift_in_compiler".
2021-12-22 11:31:52 +01:00
Erik Eckstein
83bfa1b0f3 cmake: export the libswift target and the LIBSWIFT_BUILD_MODE that the lldb build can see it. 2021-11-15 17:23:21 +01:00
Saleem Abdulrasool
5f428f594a build: use the new CMark export targets
CMark upstream now provides an exports target entry that we can use.
2020-01-03 14:40:58 -08:00
Alex Langford
c07d02ef74 [CMake] Correctly export SWIFT_LIBRARY_DIRS 2019-10-07 18:57:32 -07:00
Alex
1319fbd29e Revert "[CMake] Fix up and fill out swift exports." 2019-08-19 15:28:51 -07:00
Alex Langford
f7dde8d419 [CMake] Fix up SwiftConfig and SwiftExports 2019-08-09 11:02:50 -07:00
Dave Lee
374c2c82ce [cmake] Fix typo in SWIFT_INCLUDE_DIRS definition 2019-04-17 13:52:49 -07:00
Chris Bieneman
01b36c061a [CMake] Re-apply all the changes from PR7500
This was reverted in PR7517 as collateral for an unrelated issue.
2017-02-16 10:07:28 -08:00
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
e6ce2ff388 [CMake] Fixing up CMark exports to expand at configuration
Expanding this at include time doesn't work correctly for LLDB because the variable conventions aren't consistent. Expanding and configure time means the Swift variables get expanded and passed along.
2017-02-15 10:24:55 -08:00
Chris Bieneman
e8645f3750 [CMake] A few fixups to the Swift CMake package generation
I messed up a few of the variable substitutions. This should get them all correct.
2017-02-14 20:03:51 -08:00
Chris Bieneman
89b038ea7e [CMake] Include the CMark exports in SwiftConfig.cmake
Since Swift's build tree configuration depends on CMark, we should also include the CMark targets if they are not present and the Exports file is available.
2017-02-14 19:43:28 -08:00
Chris Bieneman
497cac64d9 [CMake] Add support for Swift buildtrees including CMake packages
This patch generates SwiftExports.cmake and SwiftConfig.cmake in the build tree to be compatible with CMake's `find_package` function for importing targets between CMake build trees. This will allow LLDB to consume Swift's targets and infer their transitive dependencies.
2017-02-14 19:23:13 -08:00