-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
CFLAGS & LINKFLAGS from extra_script #11
Comments
ok appears that LINKFLAGS getting passed to link stage, but CFLAGS not passed to compile stage? |
sorry, to be clear, my post_extra_script.py is doing this:
|
I've just renamed dev platform and refactored code. Please run Next. Please use Does it work now? |
Could you provide "blink" project here and attach? I would like to test it on my Mac and add CI support. |
here is a simply "blinky" project... just updated so it will build against latest |
regarding extra_script,
and renamed post_extra_script.py to extra_script.py - is this correct? |
for my own and others' ref, seems like many changes and additions to this doc since last time I looked at this... need to re-read: |
Are these flags #11 (comment) common per each board? Could we add them directly to dev platform? |
no, this is some cflags specific to this board...
gets interpreted as a single option, not option name "option" then value of "value". Anyhow, I think Palatis pointed this out last time as well.. The previous workaround was to hack on the CFLAGS var with a strange list construct, not sure why it was needed, but now it seems broken. |
Tested with
P.S: If you need to pass something to LINKFLAGS, you have to use extra script. |
There are some more advanced things im trying to do with my project which don't seem to be working
E.g.,
for one of my projects, I have some very special (don't ask why ;) CFLAGS and LINKFLAGS, which I'm not sure how to handle other than appending to env in extra_script.py:
https://github.com/zerog2k/stc_diyclock/blob/master/post_extra_script.py#L12-L20
I think it used to work, but now testing, I'm compiling and seeing that these don't seem to be honored by compile time.
The text was updated successfully, but these errors were encountered: