From ef74f9b58e8ea0deb3826a196083fbc75a7099fa Mon Sep 17 00:00:00 2001 From: regehr Date: Tue, 19 Feb 2008 16:57:00 +0000 Subject: [PATCH] bugfix from Mustafa Yuecel --- tools/tinyos/ncc/ncc.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; -- 2.39.2