26 | | This is not clean however (not guaranteed to work in parallel builds with `jam -j` I guess).. Looking into ChMod's internal, usage of `Depends` ..etc now .. |
| 26 | ~~This is not clean however (not guaranteed to work in parallel builds with `jam -j` I guess).. Looking into ChMod's internal, usage of `Depends` ..etc now ..~~ |
| 27 | |
| 28 | EDIT: |
| 29 | |
| 30 | Seems I had an excessively paranoid view of "jam -j" :-) |
| 31 | |
| 32 | It can run independant ''targets'' out of order, but it's not going to execute a given rule's lines out of order |
| 33 | |
| 34 | It's clear from the [https://swarm.workshop.perforce.com/files/guest/perforce_software/jam/src/Jambase original Jambase] that `rule Chmod` and `Link` do not rely on any dependancy to execute in-order |
| 35 | |
| 36 | And the OverridenJamRules's `Link` works the same |
| 37 | |
| 38 | So `Ld` should be guaranteed to execute before `Chmod` if it's called before |
| 39 | |
| 40 | |