Yeah, sorry for the confusion.  CHPL_DEVELOPER is currently treated as 
set/unset, primarily because of my personal laziness in not wanting to 
distinguish between true/True/yes/Yes/Y/T, their negative correspondants, 
and the grey area in-between in the Makefiles.  If anyone has a cute/easy 
trick for doing this, I'd be happy to hear it.

I'd have responded to this sooner, but am not familiar with the clang 
compiler, so wanted to understand how it worked better before putting my 
foot in my mouth.

You can also get finer-grained control via, e.g.:

        make "OPTIMIZE=1" "DEBUG=0"

IIRC, the default is the above while the default for developers is make 
"OPTIMIZE=0" "DEBUG=1".  And then of course, CHPL_DEVELOPER adds a bunch 
of warning flags to try and keep the code clean as well...

There's a reasonably complete description of CHPL_DEVELOPER's effects in 
doc/developer/bestPractices/CHPL_DEVELOPER.txt.

-Brad


On Wed, 29 Jan 2014, Chris Wailes wrote:

> To amend my question, I was able to get an optimized version of Chapel
> without debugging symbols by unsetting the CHPL_DEVELOPER flag instead of
> setting it to false.
>
> - Chris
>
>
> On Wed, Jan 29, 2014 at 2:04 PM, Chris Wailes <[email protected]>wrote:
>
>> I'm trying to compile an optimized version of Chapel with Clang.  I can
>> get an optimized version using GCC if I don't have the CHPL_DEVELOPER
>> environment variable set, but this still includes debugging symbols.  When
>> I set the CHPL_HOST_COMPILER to clang++ the Makefile seems to completely
>> ignores the CHPL_DEVELOPER flag and neither debugging symbols or
>> optimization flags are added.
>>
>> Ideally I would like a way to add arbitrary flags to the CFLAGS variable.
>> Is there a way to do this?  If not, is there at least a way to get Chapel
>> to compile using Clang with optimizations, or with GCC with optimizations
>> but without debugging symbols?
>>
>> - Chris
>>
>

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to