From: klueska Date: Thu, 6 Mar 2008 03:40:24 +0000 (+0000) Subject: Fix to allow the newest ncc update to still work with the tinyos-2.0.2 release X-Git-Tag: release_tinyos_2_1_0_0~489 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=985b17e79cd670abbd4e0a7bfd6a6d30f3b3cd97 Fix to allow the newest ncc update to still work with the tinyos-2.0.2 release --- diff --git a/tools/tinyos/ncc/ncc.in b/tools/tinyos/ncc/ncc.in index d8af93aa..6a9ed35e 100644 --- a/tools/tinyos/ncc/ncc.in +++ b/tools/tinyos/ncc/ncc.in @@ -143,9 +143,11 @@ my $cpp; my $deputyasmexe; my $gcc; -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\""; +if(defined $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\""; +} if ($safe) {