diff --git a/sim/testsuite/sim/cris/ChangeLog b/sim/testsuite/sim/cris/ChangeLog index 62ac790f8c9..5ff077c486d 100644 --- a/sim/testsuite/sim/cris/ChangeLog +++ b/sim/testsuite/sim/cris/ChangeLog @@ -1,3 +1,7 @@ +2021-01-07 Mike Frysinger + + * c/c.exp [cris*-*-elf] (CFLAGS_FOR_TARGET): Add -sim. + 2021-01-07 Mike Frysinger * c/kill2.c: Include unistd.h. diff --git a/sim/testsuite/sim/cris/c/c.exp b/sim/testsuite/sim/cris/c/c.exp index c9df98381e6..034c4bfd8f7 100644 --- a/sim/testsuite/sim/cris/c/c.exp +++ b/sim/testsuite/sim/cris/c/c.exp @@ -26,6 +26,10 @@ if [istarget cris-*-*] { set mach "crisv32" } +if [istarget cris*-*-elf] { + append CFLAGS_FOR_TARGET " -sim" +} + # Using target_compile, since it is less noisy, if { [target_compile $srcdir/$subdir/hello.c compilercheck.x \ "executable" "" ] == "" } {