summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-12-10 08:07:05 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-12-10 09:01:32 -0500
commit29e909c25d14cfc2ad77d3249f04469e141f4b21 (patch)
treec057edd31e5f088ff939999026e567b2b4bf2d52
parent95681c3959f8605b91f554534a50d7c1e31a085d (diff)
downloadrockbox-29e909c25d.tar.gz
rockbox-29e909c25d.zip
SDL: Log the version detected
* At build time (in configure script) * At runtime (but only for simulator builds) Change-Id: I01c6f0f39d4c68e3a5a037212b65baf693bb84a9
-rw-r--r--firmware/target/hosted/sdl/system-sdl.c13
-rwxr-xr-xtools/configure2
2 files changed, 14 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/system-sdl.c b/firmware/target/hosted/sdl/system-sdl.c
index 1003191fb3..e1c00a3915 100644
--- a/firmware/target/hosted/sdl/system-sdl.c
+++ b/firmware/target/hosted/sdl/system-sdl.c
@@ -268,6 +268,19 @@ void system_init(void)
if (SDL_InitSubSystem(SDL_INIT_TIMER))
panicf("%s", SDL_GetError());
+#ifdef SIMULATOR
+ {
+ SDL_version compiled;
+ SDL_version linked;
+
+ SDL_VERSION(&compiled);
+ SDL_GetVersion(&linked);
+ printf("Rockbox compiled with SDL %u.%u.%u but running on SDL %u.%u.%u\n",
+ compiled.major, compiled.minor, compiled.patch,
+ linked.major, linked.minor, linked.patch);
+ }
+#endif
+
#ifndef __WIN32 /* Fails on Windows */
SDL_InitSubSystem(SDL_INIT_VIDEO);
sdl_window_setup();
diff --git a/tools/configure b/tools/configure
index ddf1b93c7b..eec0b8b18a 100755
--- a/tools/configure
+++ b/tools/configure
@@ -441,7 +441,7 @@ simcc () {
echo "re-run configure!"
exit 2
else
- echo Using $sdl
+ echo Using $sdl - version `$sdl --version`
# generic ${sdl_config} checker
sdlccopts=$($sdl --cflags)