Page MenuHomePhabricator

[CMAKE] Make the split-debug script template executable
ClosedPublic

Authored by Fabien on Aug 21 2020, 08:37.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABCcb95b26cb1d2: [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).

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable