From 985b17e79cd670abbd4e0a7bfd6a6d30f3b3cd97 Mon Sep 17 00:00:00 2001 From: klueska Date: Thu, 6 Mar 2008 03:40:24 +0000 Subject: [PATCH] Fix to allow the newest ncc update to still work with the tinyos-2.0.2 release --- tools/tinyos/ncc/ncc.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) { -- 2.39.2