-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Support using ccache when building gengetopt and ragel #732
Conversation
Hi! Please take a look at the part of task about cross-compilation. We can't just use CC and CXX because they're set to cross-compiler, not native compiler. |
Okay, so we need to make sure that CC and CXX are always passed with native compilers instead of the cross compilers for ragel and gengetopt? |
Yes, because they are build tools running during build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for update! A few comments.
Fixes #639 - Implemented ccache support when building gengetopt and ragel in file 'build-3rdparty.py'. - Added 'CC' and 'CXX' paramters when executing './configure' so as to inject ccache when '--compiler-launcher=ccache' is used. Additional Notes: - Added two new functions "detect_compiler_presence" "detect_native_cc_cxx_compilers" for detecting if a particular native compiler is present or not by executing it with -v argument. - Added a third optional argument 'env' in function "format_vars" to format using that argument when it is passed.
Thanks!! Small follow-up commit: bf5e365 (see commit message for details) |
Fixes #639
Additional Notes: