-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Prebuild hook in new compiler #3799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
No it didn't: see this line of code. Can you provide a platform.txt that specifies them? |
Maybe that's the wrong place for executing that module and it should be moved down in the call chain |
Yes indeed. My fault. Fixing right now |
Fixed with 21ada82. Fix will be available with next hourly build http://www.arduino.cc/en/Main/Software#hourly |
@ffissore -- Sorry, but your "fix" doesn't work. (I just recompiled it myself after updating my local repository) From my platform.local
Note that the prebuild0 recipe was just added because the target area doesn't yet exist when my patch gets executed. generate_version_header_for_marlin is a simple bash script:
and other lines that build the useful contents of the _Version.h file And that file is expected because the headers have a
So, I expect my hook to be called before the preprocessor runs. |
You're right. Bug is that in looking for the hooks I forgot to prefix "recipe.". Fixing right now |
May anyone explain me the feature you are talking about? I am interested and I'v never heard of that, sorry. |
Another fix is available with hourly builds http://www.arduino.cc/en/Main/Software#hourly. Please give it a try |
This time I think you got it. |
@NicoHood -- As with a number of build procedures, it is often useful to have a custom operation performed at the beginning of the build process. I utilize this hook to run a script which uses The advantage in doing so is that each build is uniquely identified without the necessity of my manual updating of that identifier string. I might also add that it allows the version string to be generated without subsequently modifying the repository. This allows a true self-reference that reflects the true commit identifier of the complete source used to generate the resulting object files. You can look in my comments (above) to see an example. |
I believe this bug has reappeared. I am compiling for the adafruit NRF52 and the build.source.path is pointing to the .ino file. platform.txt file: build output: |
Hi @thaanstad , |
facchinm, I am using Arduino 1.8.5 along with visual micro however the output is from a compile in the Arduino IDE. I am using Adafruit's NRF52 0.8.4 core downloaded from boards manager. I can provide files or portions thereof if needed for debugging. Thanks! |
The new compiler dropped the prebuild hook