HomePhabricator

[CMAKE] Make the split-debug script template executable

Description

[CMAKE] Make the split-debug script template executable

Summary:
This removes the need to create an intermediate script and copy it to
change the permissions. This is not perfect because the template should
really not be executed, but:

  • The copy prevent the file from being used as a dependency
  • The template is expected to move to a more appropriate template

directory which is less confusing to users.
This also makes sure it is properly tracked and regenerated if the
template changes.

Test Plan:

cmake -GNinja ..

Check the split-debug.sh script is generated to the
<build_dir>/contrib/devtools directory and is executable (no change in
behavior).

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7236

Details

Provenance
FabienAuthored on Aug 24 2020, 06:50
abc-botPushed on Aug 24 2020, 06:56
Reviewer
Restricted Project
Differential Revision
D7236: [CMAKE] Make the split-debug script template executable
Parents
rABCe249e28b3f69: [backport#15971] validation: Add compile-time checking for negative locking…
Branches
Unknown
Tags
Unknown