Mercurial > hg > CbC > old > device
view tools/find-gcc-include-path @ 704:6e6dc2d644ed
*** empty log message ***
author | kono |
---|---|
date | Wed, 24 Oct 2007 00:13:06 +0900 |
parents | 2dee957ef988 |
children | c14a1426cfed |
line wrap: on
line source
#!/usr/bin/perl my $CC = $ARGV[1]; my $gcc = `echo '#include <stddef.h>' | $CC -E - `; $gcc =~ m=\"(/[^"]+/)stddef\.h"=; my $gcc_path = $1; if ($ARGV[0]=~/-l/) { print <<EOF char *l_include_path[] = { "/usr/include/", "$gcc_path", 0 }; EOF } else { print "$gcc_path\n"; }