Skip to content

Use CPP recipe to generate PREPROC if empty #125

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

Merged
merged 1 commit into from
Mar 25, 2016

Conversation

facchinm
Copy link
Member

@facchinm facchinm commented Mar 4, 2016

Since the preproc rule is nothing more than the cpp rule with some extra flags and a different target, generate it instead than manually compiling a list of "compatibility_flags" and relying on it

solves #106
@matthijskooijman

@matthijskooijman
Copy link
Collaborator

Hm, I don't really like fiddling around in the platform.txt entries from code like that, though I can't think of a better way just now. I thought you could perhaps just define a preproc rule that includes the cpp rule with some extra flags, but then the object_file variable name vs preprocessed_file_path will be problematic. Unless we normalize that to output_file (and keep both names for both recipes as backward compatibility)` that won't work unfortunately...

solves arduino#106

Signed-off-by: Martino Facchin <m.facchin@arduino.cc>
@facchinm
Copy link
Member Author

Merging this PR to let it stay in staging for some weeks, eventually reverting it if testers find any drawback

@facchinm facchinm merged commit fc8856c into arduino:master Mar 25, 2016
@cmaglie cmaglie deleted the preproc_rules branch January 11, 2018 09:51
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.

2 participants