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 editing compiler flags #39

Open
tbe opened this issue Dec 9, 2016 · 4 comments
Open

Add support for editing compiler flags #39

tbe opened this issue Dec 9, 2016 · 4 comments
Labels

Comments

@tbe
Copy link

tbe commented Dec 9, 2016

Issue by jamesmattis
Thursday Oct 23, 2014 at 20:06 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT
Originally opened as pebble#110


It would be great to have support for editing the wscript file to change build settings, or at least have some sort of interface for adding & editing CFLAGS. Things like this for example:

ctx.env.CFLAGS.append('-DUSE_FIXED_POINT=1')

Add/Delete/Toggle on/off.

@tbe tbe added the imported label Dec 9, 2016
@tbe
Copy link
Author

tbe commented Dec 9, 2016

Comment by jamesmattis
Thursday Oct 23, 2014 at 20:41 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Wanted to add a few more comments after reading some stuff in the developers forum on this topic.

I want the ability to add or set CFLAGS and share code between multiple projects. So, some shared code folder perhaps, and the ability to have the system automatically edit the wscript file so that the appropriate shared code gets built for your project.

I don't however want or need direct wscript editing ability. Just some means of having the system edit the wscript file in some standard ways.

@tbe
Copy link
Author

tbe commented Dec 9, 2016

Comment by Katharine
Thursday Oct 23, 2014 at 20:47 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


CFLAGS is one thing, and I'll do those at some point.

Shared code is a harder problem. They don't live in the same feature request, in any case.

@tbe
Copy link
Author

tbe commented Dec 9, 2016

Comment by ron064
Monday Nov 10, 2014 at 02:24 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


@jamesmattis
It's not clear to me how CFLAGS can do anything you can't do with simple define in the project.
for the other subject, I'm opening a similar issue.

@tbe
Copy link
Author

tbe commented Dec 9, 2016

Comment by jamesmattis
Monday Nov 10, 2014 at 18:47 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Though that's true...my strong suspicion is that there are many developers
coming to develop on CloudPebble with little C experience and minimal C
preprocessor experience. I think for those types of users, providing some
interface that would give them with a list of common options that they
could select or add to their project via CFLAGS would really benefit them.

James

On Sun, Nov 9, 2014 at 6:24 PM, Ron Ravid [email protected] wrote:

@jamesmattis https://github.com/jamesmattis
It's not clear to me how CFLAGS can do anything you can't do with simple
define in the project.
for the other subject, I'm opening a similar issue.


Reply to this email directly or view it on GitHub
pebble#110 (comment).

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

No branches or pull requests

1 participant