User forums > Embedded development
Looking for example of "Post-build steps"
christobal:
--- Quote from: christobal on December 06, 2016, 07:54:43 am ---You can also choose how the target options are combined with the project options: They can be appended, prepended, they can replace the project options or they can be ignored (project options only).
--- End quote ---
Apparently, I was mistaken. The policies can be applied for e.g. Compiler Settings, Linker Settings etc., but not for the Pre/Post build steps. It seems that the target post-build steps are always executed before the project post-build steps.
Hence, if the target post-build fails, the project post-build will not be executed...
BTW: you can switch between project and target settings by selecting the appropriate entry in the tree on the left-hand side...
Pavel_47:
--- Quote ---BTW: you can switch between project and target settings by selecting the appropriate entry in the tree on the left-hand side...
--- End quote ---
Useful remark. Thanks.
--- Quote ---Apparently, I was mistaken. The policies can be applied for e.g. Compiler Settings, Linker Settings etc., but not for the Pre/Post build steps. It seems that the target post-build steps are always executed before the project post-build steps. Hence, if the target post-build fails, the project post-build will not be executed...
--- End quote ---
Yes it's the case ... whatever policy I set, both post-builds commands ("project" and "target") are executed, so if one of them is out of date, it must be removed in order to "up-to-date" version runs.
I suppose, that the issue with main1.o occured because I didn't save the project (proj1.cbp) file. That's why even "target post-build" was empty (after my eventual modification), its trace persisted in .cbp file and obfuscated the execution of "project post-build". Isn't it ?
Navigation
[0] Message Index
[*] Previous page
Go to full version