| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds support for tracking the swiftmodules for executables
exporting symbols.
This fixes a bug in the earlier implementation around emitting the
swiftmodule. Previously, the code would use
`CMAKE_EXE_EXPORTS_Swift_FLAG` to inject the `-emit-module`, and module
path information into the `CMAKE_Swift_LINK_EXECUTABLE` rule. Because
Swift skips the build step and only runs during the link phase, these
flags were injected in `cmNinjaNormalTargetGenerator::ComputeLinkCmd`
instead of `cmLocalGenerator::GetTargetFlags` where it is done normally.
Unfortunately, injecting in `ComputeLinkCmd` didn't do anything because
we have a `linkCmd` so `ComputeLinkCmd` exits early, before the
EXE_EXPORT flags get added to the link command.
Instead of playing with that flag, CMake checks
`CMAKE_Swift_LINK_EXECUTABLE_WITH_EXPORTS` and uses that as the link
rule if it exists and falls back on `CMAKE_Swift_LINK_EXECUTABLE`. I've
defined that variable in terms of `CMAKE_Swift_LINK_EXECUTABLE` with the
necessary additional flags for emitting the swift module instead. This
has the same end effect as the desired behavior, but simplifies things a
bit.
Since we're generating the swiftmodule for executables with exports,
I've also updated the dependency graph to include the swiftmodule as an
output in the build dependency graph if the executable has exports.
Tests updated:
- RunCMake/NoWorkToDo:
Ensure that the build graph does not result in unnecessary rebuilds
with exporting executables.
- SwiftOnly:
Ensure that we can consume functions defined in the executable by a
library getting linked into said executable.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
87778d2da5 Help: Enhance UseSWIG module documentation
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8013
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Add section headings
* Add TOC (HTML only)
* Move `swig_link_libraries()` to "Deprecated commands"
section at end of docs, document as deprecated in favor of
`target_link_libraries()` in all cases.
|
|/ |
|
|\
| |
| |
| |
| |
| |
| |
| | |
74638c47ff STATIC_LIBRARY_OPTIONS: ensure correct expension of list inside a genex
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8038
|
| |
| |
| |
| | |
Fixes: #24258
|
| | |
|
|/ |
|
| |
|
|\ |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
dfab263825 Help: Clarify and update SYSTEM-related docs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8027
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | | |
dfab263825 Help: Clarify and update SYSTEM-related docs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8027
|
| | | |
|
|\ \ \
| | |/
| |/| |
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
a817948423 Code comments: Fix trivial typos
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8030
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
a817948423 Code comments: Fix trivial typos
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8030
|
| | |/
| |/| |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
9715d3acb7 Copyright.txt: Update year range to end in 2023
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8034
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
d811d86fd7 FileAPI: Add "configureLog" object kind
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8029
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Provide clients with a way to get a known set of configure log event
versions.
Issue: #23200
|
| | | | |
|
|\ \ \ \
| | |_|/
| |/| | |
|
| |\ \ \
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | | |
22d36aa0f8 Help: string(JSON): avoid duplicate labels
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8028
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
22d36aa0f8 Help: string(JSON): avoid duplicate labels
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8028
|
| |/ / |
|
| |/
|/| |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
5dc17d0a7a gitlab-ci: update to new Clang CI image for C++ modules
e84fcbcb0b cxxmodules: support new round of Clang patches
5e35913382 ci: update `llvm` snapshot to newest patch revisions
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8019
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These patches now support the `-MF` output, so remove the `none` support
added just for the old patchset which did not use it.
Also update the flag name to `-fmodule-output=`.
Due to the new Clang module mapper flag, use a new experimental support
UUID as well.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
14c46fb16a FindHDF5: Find C component with only CXX compiler
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8015
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
For CXX-only projects it is sometimes useful to detect the C
component even with just a CXX compiler.
Fixes: #24241
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
cb00fe0892 cmake-gui: do not set search filter if regex is invalid
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Igor Kushnir <igorkuo@gmail.com>
Merge-request: !8018
|
| | |/ /
| |/| |
| | | |
| | | | |
Fixes: #24248
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
6c40e0b25e ConfigureLog: Version individual events instead of the whole log
048a02d5bb ConfigureLog: Log try_compile and try_run checks
746c776caf ConfigureLog: Add infrastructure for structured configure event logging
e8b8d82cbf Tests: Generalize RunCMake expectation component names
8d29a0bda6 cmTryRunCommand: Factor out stdout/stderr capture conditions
fdda4095a3 cmCoreTryCompile: Return more semantic information from compile step
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8017
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
In order to support multiple log versions without buffering the
entire log, move versioning to the level of individual events.
Multiple versions of an event may then be logged consecutively.
Issue: #23200
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Add configure log events for `try_compile` and `try_run` results.
Issue: #23200
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Add infrastructure for a "configure log". Use YAML for a balance of
machine- and human-readability to records details of configure-time
events in a structured format.
Teach the RunCMake test framework to support matching the configure log.
Issue: #23200
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Do not assume all the component names start in "std".
Co-authored-by: Brad King <brad.king@kitware.com>
|
| | | | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Update the `TryCompileCode` signature to allow callers to distinguish
between administrative failures and a compilation failure. Return
results in a structure to which more information can be added later.
|
|\ \ \ \
| | |_|/
| |/| | |
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
2ee845c0a5 Help: Add version information for SYSTEM option of add_subdirectory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8025
|