From 1f3d667b1a8d4a11d2745ce22b89566265b48142 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 9 Feb 2009 16:18:07 +0000 Subject: do the #error for unknown CPU in the cases we're not building a sim git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19956 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/plugin.lds | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins/plugin.lds') diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index d890639c75..dd52fbac22 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -10,10 +10,10 @@ OUTPUT_FORMAT(elf32-littlearm) OUTPUT_FORMAT(elf32-sh) #elif defined(CPU_MIPS) OUTPUT_FORMAT(elf32-littlemips) -#else -/* We cannot have an #error here since we don't have any of these defines - define when we build simulators! - #error Unknown CPU architecture */ +#elif !defined(SIMULATOR) +/* We cannot have an #error here when building simulators since we don't have + any CPU defined then! */ +#error Unknown CPU architecture #endif #ifdef DEBUG -- cgit v1.2.3