Closed adamredwoods closed 11 years ago
its the last commit on that list, not sure why it listed that other stuff.
Sort of been waiting until I clean up preprocessor += until I did this, eg:
Currently, += just separates things with ';' so this...
...ends up as "-o3;-DYEAH" which would confuse gcc.
A Replace( ";"," " ) would deal to this, but it means you can't use ';' in any += strings.
But that's probably OK in this case - will add this to stdcpp soon!
CC_OPTS for glfw is a bigger issue due to msvc. Perhaps glfw should become 'mingw only'?
so the += inserting semi-colons can be worked around by using
which seems to work for now.
i think this would be a great start to just add it in the stdcpp, giving us tinkerers a little more room to play. i'm not yet worried about the glfw targets using this, maybe for something like Cairo graphics, but no one's really demanding it (yet). cross that bridge later.
Sort of, but the point of the += is really to allow you to put things in separate modules - so there are an 'unknown' number of CC_OPTSn=.
Anyway, added my own version to stdcpp which should work as long as you don't have ; in an opt! Will give it a quick test and push it.
On Fri, Jul 12, 2013 at 4:38 PM, AdamRedwoods notifications@github.comwrote:
so the += inserting semi-colons can be worked around by using
CC_OPTS0 = "-lgl"
CC_OPTS1 = "-lwin"
CC_OPTS = CC_OPTS0+CC_OPTS1
which seems to work for now.
i think this would be a great start to just add it in the stdcpp, giving us tinkerers a little more room to play. i'm not yet worried about the glfw targets using this, maybe for something like Cairo graphics, but no one's really demanding it (yet). cross that bridge later.
— Reply to this email directly or view it on GitHubhttps://github.com/blitz-research/monkey/pull/29#issuecomment-20858124 .
Pushed to develop!
On Fri, Jul 12, 2013 at 5:18 PM, Mark Sibly blitzmunter@gmail.com wrote:
Sort of, but the point of the += is really to allow you to put things in separate modules - so there are an 'unknown' number of CC_OPTSn=.
Anyway, added my own version to stdcpp which should work as long as you don't have ; in an opt! Will give it a quick test and push it.
On Fri, Jul 12, 2013 at 4:38 PM, AdamRedwoods notifications@github.comwrote:
so the += inserting semi-colons can be worked around by using
CC_OPTS0 = "-lgl"
CC_OPTS1 = "-lwin"
CC_OPTS = CC_OPTS0+CC_OPTS1
which seems to work for now.
i think this would be a great start to just add it in the stdcpp, giving us tinkerers a little more room to play. i'm not yet worried about the glfw targets using this, maybe for something like Cairo graphics, but no one's really demanding it (yet). cross that bridge later.
— Reply to this email directly or view it on GitHubhttps://github.com/blitz-research/monkey/pull/29#issuecomment-20858124 .
i've always felt CC_OPTS should be added to the stdcpp.monkey target to help some of us extend monkey desktop targets. very handy IMHO.