Rose
8d06ca7f4e
Prefer std::copy_n over std::copy where appropriate.
...
std::copy_n saves us from having to do the addition manually.
2023-03-16 16:25:51 -04:00
Robert Widmann
2ac4283538
Merge pull request #41860 from keith/ks/swift-stdlib-tool-reject-invalid-arguments
...
[swift-stdlib-tool] Reject invalid arguments
2022-05-02 14:36:52 -07:00
Robert Widmann
17e8d5c6d2
Merge pull request #41877 from keith/ks/swift-stdlib-tool-add-error-for-missing-directories
...
[swift-stdlib-tool] Add error for missing directories
2022-05-02 14:34:43 -07:00
Allan Shortlidge
f0360a2984
Fix trivial warnings emitted during a full build.
2022-04-05 17:16:19 -07:00
Keith Smiley
a61899f6d1
[swift-stdlib-tool] Add error for missing directories
...
In the case the user passes a directory that doesn't exist, this now
errors immediately instead of silently ignoring it.
2022-03-17 17:53:14 -07:00
Keith Smiley
fd7028d886
[swift-stdlib-tool] Reject invalid arguments
...
Previously any invalid flags were silently ignored.
2022-03-17 11:46:21 -07:00
Keith Smiley
d1eabf182c
[swift-stdlib-tool] Fix finding sibling directories ( #41110 )
2022-02-07 19:45:51 -08:00
Richard Howell
e9fe60374f
[swift-stdlib-tool] use correct path when codesigning
2021-11-08 13:22:39 -08:00
Richard Howell
4fcccfd9ba
[swift-stdlib-tool] fix inverted logic
2021-11-08 13:21:29 -08:00
Miguel Salinas
1e94613fb5
Merge branch 'main'
2021-11-03 16:24:33 -07:00
Miguel Salinas
3c8bb5d51c
fix formatting issues
2021-11-02 12:10:31 -07:00
Keith Smiley
615b1bcbde
Use component prefix to add instead of specifics
2021-11-01 10:59:47 -07:00
Keith Smiley
f890e75dee
[swift-stdlib-tool] Add support for back deployed concurrency
...
This tool was mostly already compatible with copying
`libswift_Concurrency.dylib` based on whether or not the executables it
was scanning linked it. The only thing missing was that it can now end
up copying from different source directories, the older `swift-5.0`
directory, and the new `swift-5.5` directory.
This change allows users to pass `--source-libraries` multiple times
(or picks a default with both) in order to have it scan both directories
for any libraries the app links. The biggest part of this change is
instead of storing just the library name throughout this logic we now
store the actual discovered path, so that we don't have to loop through
all potential source directories each time we need to find the library,
only the first time.
2021-10-31 21:36:41 -07:00
Miguel Salinas
2e8028cf70
fix fd leaks
2021-10-03 13:41:19 -07:00
Miguel Salinas
786e906a0e
fix directory traversal
2021-10-01 17:40:19 -07:00
Miguel Salinas
808d7f3c41
remove std::filesystem usage
2021-10-01 16:16:32 -07:00
Miguel Salinas
de73874c8e
Merge branch 'main' of github.com:salinas-miguel/swift
2021-09-24 15:41:16 -07:00
Miguel Salinas
b075697869
fix bugs and address feedback
2021-09-24 15:40:12 -07:00
salinas-miguel
815b784988
fix typo
2021-09-20 11:40:00 -07:00
Miguel Salinas
6e8c59a959
only require C++17 for swift-stdlib-tool
2021-09-13 09:43:24 -07:00
Miguel Salinas
f995005494
address feedback
2021-09-10 16:40:57 -07:00
salinas-miguel
2fdd5e6a3e
Remove Foundation dependency
2021-09-08 16:19:26 -07:00
Saleem Abdulrasool
15b8772ae9
swift-stdlib-tool: avoid VLA usage
...
Replace the use of a VLA with a `std::vector`. This applies a RAII to
the allocation, and the allocation is a single instance so the malloc
traffic is not a concern.
2019-10-29 10:18:43 -07:00
Kyle Macomber
f086b9b94f
Update swift-stdlib-tool for Swift 5 ( #27276 )
2019-09-23 14:51:35 -07:00
Alex Langford
5d5d01a2fe
[CMake] Require SWIFT_COMPONENT for add_swift_host_tool
2018-12-14 12:27:53 -08:00
Saleem Abdulrasool
24dd1739d4
swift-stdlib-tool: switch to add_swift_host_tool
...
This tool is only built for the host. Use the add_swift_host_tool
function instead. NFCI.
2018-10-29 11:53:29 -07:00
swift-ci
cc373f9c30
Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition
2018-01-08 12:27:47 -08:00
Greg Parker
0ddb6c6e3d
[tools] Fix a const cast warning in swift-stdlib-tool.
2018-01-04 18:25:25 -08:00
Bob Wilson
390058972a
[master-next] Use PRIVATE in target_link_libraries for executables
...
This is needed to work with LLVM r319840.
2017-12-06 21:55:22 -08:00
Ted Kremenek
62afb0f4c9
Add sources for swift-stdlib-tool.
2017-03-21 17:53:47 -07:00