X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tools%2Ftinyos%2Fncc%2Fncc.in;h=d8af93aaa4a5a8c63d6a38cbc7a6849988e32b9a;hb=ef74f9b58e8ea0deb3826a196083fbc75a7099fa;hp=a70759d540cb7cc22a0d13a07548ff4887e556c5;hpb=1b97b96efec13d9fb50094f01e6ecb6a23aca89a;p=tinyos-2.x.git diff --git a/tools/tinyos/ncc/ncc.in b/tools/tinyos/ncc/ncc.in index a70759d5..d8af93aa 100644 --- a/tools/tinyos/ncc/ncc.in +++ b/tools/tinyos/ncc/ncc.in @@ -143,7 +143,7 @@ my $cpp; my $deputyasmexe; my $gcc; -my $safe_home = $ENV{'TOSDIR'}."/lib/safe"; +my $safe_home = $TOSDIR."/lib/safe"; push @new_args, "-fnesc-include=${safe_home}/include/annots_stage1"; push @new_args, "-fnesc-genprefix=#include \"${safe_home}/include/annots_stage2.h\""; @@ -334,6 +334,7 @@ foreach $idir (@includes) { print STDERR join(' ', @new_args), "\n" if $verbose; if ($safe) { + # nescc runs and puts in annotations like COUNT etc... system(@new_args)==0 or die "Couldn't execute nescc\n";