C++Flags not working? or pilot error?
I'm playing around with JamPlus, and I can't get CFlags/C++Flags to work.
If I just change the hello world sample jamfile to:
SubDir TOP ;
CFlags helloworld : /sometestflag ;
Application helloworld : main.c ; ===========
I do not see sometestflag added to the compiler options. (I deliberatly add an error to main.c, so that the compile options get displayed)
I've tried C++Flags as well, same result.
I hope I'm just missing something obvious here. Anybody care to point it out?
There was a bug in JamPlus 0.2 that prevented the
CFlags rule from working properly. It has been fixed for over a month now, but I haven't put out the JamPlus 0.3 release with the fix in it.
In the meantime, there is a new file available on the Files tab called JamPlus-nightly-bin.zip. It has the fix and works with your example.
To see the command lines being used, run jam.exe with the
RE: C++Flags not working? or pilot error? - Added by Lucas Meijer almost 11 years ago
Thanks Josh. I found the CFLAGS->CCFLAGS bug after a while.
I'm glad the fix is in 'mainline'.
I didn't find the '-dx' option before, very useful, I can stop putting deliberate compiler errors in my code :)
I'm excited to see GCC support coming to JamPlus. If nobody else is working on XCode project file generation, I might
give that a stab myself, I'd love to use JamPlus on my osx/win32/linux codebase for real.
I haven't been available much lately, as we recently had a new baby. Alen has also been superbly busy with his Real Life job and family. We'll get ourselves coordinated again and make sure the bootstrapping is working well. Then we can get the GCC support working. The MinGW support already works, so the GCC support is just a short hop away.
As far as Xcode project support, I would absolutely love to see that reimplemented. In an older version, I had something rough going, but it was nowhere near as robust as what the CMake developers created. I would start it from scratch now.