From: regehr Date: Tue, 19 Feb 2008 16:57:00 +0000 (+0000) Subject: bugfix from Mustafa Yuecel X-Git-Tag: release_tinyos_2_1_0_0~523 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=ef74f9b58e8ea0deb3826a196083fbc75a7099fa bugfix from Mustafa Yuecel --- 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";