[llvm-commits] REPOST: llvm-gcc expensive checks patch

Reid Spencer rspencer at reidspencer.com
Tue Jul 10 00:50:26 PDT 2007


On Mon, 2007-07-09 at 11:04 -0700, Chris Lattner wrote:

> I think that "llvm-config --cppflags" should include "- 
> D__STDC_LIMIT_MACROS".  What do you think?
> 

This problem and other similar ones are now fixed. In order to make the
fix visible, you may need to force the regeneration of your llvm-config
after you update. I suggest this:

cd llvm-top/llvm
svn update
rm Debug/bin/llvm-config
make

The problem was two fold: wrong var names in Makefile.rules, and wrong
var name in tools/llvm-config/Makefile. There was also some cleanup in
llvm-config.in.in that was needed.  See the corresponding commits for
details.

As a test, I built llvm-config with things like
ENABLE_EXPENSIVE_CHECKS=1 and it produces -DGLIBCXX_DEBUG option in the
output of --cppflags --cxxflags and -cflags

Reid.





More information about the llvm-commits mailing list