1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-17 15:32:10 +08:00

10 Commits

Author SHA1 Message Date
Martin Duffy
2fdd1e787f instrumentation: Additional data in custom, install and link snippets
- Include `config` in all `install` and `custom` snippets
- Include `target` for `custom` snippets where applicable
- Document and test inclusion of `language` in `link` snippets

Issue: #27244
2025-09-24 16:39:09 -04:00
Brad King
952300ed4e Merge topic 'fbuild_dont_write_empty_deps'
64296789d3 FASTBuild: don't write empty dependencies

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11208
2025-09-21 18:42:57 -04:00
Brad King
f2013e8479 Merge topic 'fbuild_reduce_duplicates'
08d68af5e6 FASTBuild: remove more duplicates from custom commands

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11213
2025-09-21 18:38:43 -04:00
Brad King
c96ec11b5e Merge topic 'fbuild_dont_set_work_dir'
9d54b639d3 FASTBuild: don't set ExecWorkingDir for custom command

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11210
2025-09-21 18:37:08 -04:00
Eduard Voronkin
64296789d3 FASTBuild: don't write empty dependencies
We were writing "-deps" alias in the generated file
even if we didn't have any dependencies, which is excessive
and makes FASTBuild do more work then necessary.
2025-09-19 09:34:47 -07:00
Eduard Voronkin
9d54b639d3 FASTBuild: don't set ExecWorkingDir for custom command
We don't need set ExecWorkingDir since we add
a "cd" command to the script file anyway
(so the custom command will be executed in the correct directory).

Moreover, in 1.16 FASTBuild started using posix_spawn* API
instead of fork() (which is much more efficient),
but it only does so if `ExecWorkingDir` is not set.
2025-09-19 08:16:29 -07:00
Eduard Voronkin
4b74d6c5b7 FASTBuild: fix possible collision in exec's name
I was lucky enough to hit a hash collision
in the first 7 hex digits (28 bits) of SHA256 :)
2025-09-19 08:13:50 -07:00
Eduard Voronkin
08d68af5e6 FASTBuild: remove more duplicates from custom commands
Before there were a lot of duplicated shared across
"ExecInput" and "PreBuildDependencies".
2025-09-19 08:11:58 -07:00
Eduard Voronkin
4387c965a6 FASTBuild: optimize generated file
List of changes:
1. Remove unneeded aliases
2. Don't write VS Solution on Apple
3. Use external script to perform clean
4. Fix small bug when empty environment was
resulting in invalid file.
It greatly reduces the size of .fdb file and
makes FASTBuild run much faster in different cases.
2025-09-14 20:26:11 -07:00
Eduard Voronkin
01147454e7 FASTBuild: Add generator
Fixes: #15294
2025-08-26 14:29:01 -07:00