From 465fb143c87076b6416a8d0d5dd79bb016060fe3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 19 Feb 2015 03:46:01 -0500 Subject: sim: make nrun the default run program We want people to stop using the run.c frontend, but it's hard to notice when it's still set as the default. Lets flip things so nrun.c is the default, and users of run.c will get an error by default. We turn that error into a warning for existing sims so we don't break them -- this is mostly meant for people starting new ports. --- sim/avr/ChangeLog | 6 ++++++ sim/avr/Makefile.in | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'sim/avr') diff --git a/sim/avr/ChangeLog b/sim/avr/ChangeLog index 1f81423..9105e38 100644 --- a/sim/avr/ChangeLog +++ b/sim/avr/ChangeLog @@ -1,3 +1,9 @@ +2015-03-14 Mike Frysinger + + * Makefile.in (SIM_EXTRA_CFLAGS): Set to + -DSIM_USE_DEPRECATED_RUN_FRONTEND. + (SIM_RUN_OBJS): Set to run.o. + 2015-02-19 Mike Frysinger * interp.c (sim_kill): Delete unused func. diff --git a/sim/avr/Makefile.in b/sim/avr/Makefile.in index b767f51..b852211 100644 --- a/sim/avr/Makefile.in +++ b/sim/avr/Makefile.in @@ -16,6 +16,11 @@ ## COMMON_PRE_CONFIG_FRAG +SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND + +# Use the deprecated run frontend until we migrate to nrun.o +SIM_RUN_OBJS = run.o + SIM_OBJS = interp.o sim-load.o SIM_EXTRA_LIBS = -lm -- cgit v1.1