]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Pass the GCC variable to ncc. This make it easy to switch from one compiler to another.
authorrazvanm <razvanm>
Sat, 14 Nov 2009 02:12:39 +0000 (02:12 +0000)
committerrazvanm <razvanm>
Sat, 14 Nov 2009 02:12:39 +0000 (02:12 +0000)
support/make/sim.extra
tos/platforms/micaz/sim/.platform

index 13ab0516d46dee7b2606a12a51478cb164e2a0bf..2bf5abdd5b251c9b82324b4275560bb4bbe034a6 100644 (file)
@@ -1,11 +1,11 @@
 #-*-Makefile-*- vim:syntax=make
 #$Id$
 
-GCC=gcc
+export GCC=gcc
 GPP=g++
 OPTFLAGS = -g -O0
 LIBS = -lm -lstdc++ 
-PFLAGS += -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)  
+PFLAGS += -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=$(GCC)
 WFLAGS = -Wno-nesc-data-race
 PYTHON_VERSION=2.5
 
index fe798618f5ee1467a35f8af9f385dac77d9c0ebf..e9de97234bbbd84406bd666c034f7eb06cf03f68 100644 (file)
@@ -28,11 +28,15 @@ push( @includes, qw(
 
 @opts = qw(
 
-  -gcc=gcc
   -fnesc-no-debug
   -fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask
 
 );
 
+if (defined($ENV{"GCC"})) {
+  push @opts, "-gcc=$ENV{'GCC'}";
+} else {
+  push @opts, "-gcc=gcc";
+}
 push @opts, "-mingw-gcc" if $cygwin;