Mercurial > hg > CbC > old > device
view tools/find-gcc-include-path @ 751:c921670e2ce8
i64 continue... 64bit register
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 14 Nov 2010 04:56:02 +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"; }