Skip to content
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

Add support for build_opt.h in the sketch folder to use additional global build options #5237

Conversation

brainelectronics
Copy link
Contributor

Additional compile arguments can be given by a file named "build_opt.h" and shall be placed next to the Sketch.ino file.
This enables users to easily extend their arguments on a central place.
The script has been taken from stm32duino's Arduino_Core_STM32 package

Additional compile arguments can be given by a file named "build_opt.h".
This enables users to easily extend their arguments on a central place.
The script has been taken from stm32duino's Arduino_Core_STM32 package
@CLAassistant
Copy link

CLAassistant commented Jun 2, 2021

CLA assistant check
All committers have signed the CLA.

@brainelectronics
Copy link
Contributor Author

@me-no-dev I'm not sure whether this script violates the CLA or not. It is doing nothing but creating the file. It is not covered by the stm32duino's license file.

@me-no-dev
Copy link
Member

Hi @brainelectronics :)
I have fixed the PR, but you need to sign the CLA in order for me to merge it.

Script is not necessary. Build will check if build_opt.h exists in the sketch folder and use it, else will use an empty one.

@me-no-dev me-no-dev changed the title Add prebuild script to use additional build options Add support for build_opt.h in the sketch folder to use additional global build options Jun 10, 2021
@brainelectronics
Copy link
Contributor Author

Big thank you @me-no-dev for the changes. I'm not familiar with windows command line. Excited to see this in one of the next releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants