Commit Graph

16 Commits

Author SHA1 Message Date
Michael Gottesman
8b8abd6fa2 [cmake] Add a new component llvm-toolchain-dev-tools and make FileCheck installation use it.
This will let me reuse toolchain-dev-tools for tools useful in a just built
toolchain but that are from Swift rather than copied from LLVM.
2021-11-05 20:37:54 -07:00
Jordan Rose
23ca3cfce9 [CMake] Install swift-api-dump.py and FileCheck as executable (#26644)
rdar://problem/28621658
2019-08-13 18:27:23 -07:00
Alex Langford
3d9a28925b [CMake] Modify swift_install_in_component to support cmake install components
CMake supports the notion of installation components. Right now we have some
custom code for supporting swift components. I think that for installation
purposes, it would be nice to use the CMake component system.

This should be a non-functional change. We should still only be generating
install rules for targets and files in components we want to install, and we
still use the install ninja target to install everything.
2019-04-19 14:06:11 -07:00
Xi Ge
5c0013e371 cmake: install swift-api-checker into the tools component. 2019-03-20 11:24:33 -07:00
Saleem Abdulrasool
350cf67788 utils: attempt to replace custom variables
CMake defaults to using a special <package>_DIR for finding packages.
Prefer this to import the CMake package for LLVM/Clang/Swift rather than
custom paths.
2019-02-22 18:47:26 -08:00
Slava Pestov
1d8928425a Revert "utils: attempt to replace custom variables" 2019-02-22 19:21:13 -05:00
Saleem Abdulrasool
817597c7f9 utils: attempt to replace custom variables
CMake defaults to using a special <package>_DIR for finding packages.
Prefer this to import the CMake package for LLVM/Clang/Swift rather than
custom paths.
2019-02-14 20:19:08 -08:00
Saleem Abdulrasool
509060c78a build: convert paths to CMake paths before use
This converts the path separators to the CMake way.  This is primarily
important for Windows where the path separator is \ rather than /.  This
conversion allows the specification of the path in the proper windows
path style.
2018-12-30 12:27:16 -08:00
Michael Gottesman
8b96071803 [lldb-with-tools] Add a new utility script called lldb-with-tools.
This is a simple tool that starts lldb, but before it runs your commands, uses
the -O command to load lldbToolBox.py. This provide sthe llvm data formatters as
well as potential future lldb extensions that we write for swift itself.

A better name for this utility would be much appreciated, but I think for now
the name "lldb-with-tools" is at least self explanatory.
2018-02-19 07:02:15 -08:00
Daniel Dunbar
eb582cc29b [CMake] Add support for installing FileCheck, if requested. 2016-05-04 16:29:34 -07:00
practicalswift
53474bc156 [CMakeLists] Comment out unnecessary logic 2016-03-01 11:00:15 +01:00
Doug Gregor
de253d9b6f [CMake] Fix installation of swift-api-dump.py 2016-02-16 09:15:39 -08:00
Doug Gregor
9832468dac Install swift-api-dump.py script to make it easier to use 2016-02-15 11:38:00 -08:00
Chris Lattner
c66fdac034 Revert "Generalize omit-needless-words script to swift-api-dump."
This reverts commit a4e4af0c40.
2016-02-09 22:33:52 -08:00
Doug Gregor
a4e4af0c40 Generalize omit-needless-words script to swift-api-dump.
The omit-needless-words script has grown into a more general "API
dumping" script. Make it a bit more useful by installing it alongside
swift-ide-test, symlinking it in the build directory next to
swift-ide-test (for Swift developers), and defaulting to using the
swift-ide-test in the same directory as the script. Now it's fairly
easy to dump the API for a given SDK with, e.g.,

  swift-api-dump.py -s iphoneos
2016-02-09 16:41:24 -08:00
David Farler
4ac9c80809 Add back remaining files for building and testing in Open Source 2015-10-31 00:19:20 -07:00