]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
bugfix from Mustafa Yuecel
authorregehr <regehr>
Tue, 19 Feb 2008 16:57:00 +0000 (16:57 +0000)
committerregehr <regehr>
Tue, 19 Feb 2008 16:57:00 +0000 (16:57 +0000)
tools/tinyos/ncc/ncc.in

index a70759d540cb7cc22a0d13a07548ff4887e556c5..d8af93aaa4a5a8c63d6a38cbc7a6849988e32b9a 100644 (file)
@@ -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";