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

Preprocessor files / temporary compile files not saved #1166

Closed
madworm opened this issue Dec 11, 2012 · 3 comments
Closed

Preprocessor files / temporary compile files not saved #1166

madworm opened this issue Dec 11, 2012 · 3 comments
Assignees
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone

Comments

@madworm
Copy link

madworm commented Dec 11, 2012

I started with a clean 1.0.2 installation, wiped the preferences.txt file as well. Enabled "preproc.save_build_files=true", but all that remains in /tmp/buildXXXXX is the .cpp and .cpp.d file. I would like to see the code after it has gone through the preprocessor with all text replacements done to debug compilation errors.

I think "-save-temps" would be nice to have.

@ffissore ffissore added the New label Feb 27, 2014
@ffissore ffissore added the Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation label Jan 20, 2015
@ffissore
Copy link
Contributor

The /tmp/buildXXXXX.cpp file is the result of the preprocessing done by the IDE.
Related to preprocessing, you may want to give a spin to this version of the IDE bundled with a new preprocessor
https://groups.google.com/a/arduino.cc/forum/#!msg/developers/4X2T3rCxXWM/nQEnH-9wmhMJ

@ffissore ffissore self-assigned this Jan 30, 2015
@ffissore
Copy link
Contributor

New preprocessor tracked at #2636. Builds for testing it are available

@ffissore
Copy link
Contributor

New preprocessor available in nightly builds. Temporary files are preserved when using CLI and specifying --preserve-temp-files. See https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc

@ffissore ffissore added this to the Release 1.6.6 milestone Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Projects
None yet
Development

No branches or pull requests

3 participants