about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorYang Liu <numbksco@gmail.com>2024-03-03 15:49:45 +0800
committerGitHub <noreply@github.com>2024-03-03 08:49:45 +0100
commit26371bb9ddeccf5a4b7dd3920c100da9ebb0537c (patch)
tree8bc025195158660b2053ff83e943628dafac558e /src/main.c
parentde4ffcc8bc104e3a9c42f82b01d074bfb80b46b0 (diff)
downloadbox64-26371bb9ddeccf5a4b7dd3920c100da9ebb0537c.tar.gz
box64-26371bb9ddeccf5a4b7dd3920c100da9ebb0537c.zip
Added a warning on interpreter only build when DynaRec is available (#1316)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 9450bfa4..5e14b677 100644
--- a/src/main.c
+++ b/src/main.c
@@ -518,6 +518,11 @@ void LoadLogEnv()
         if(!box64_nobanner)
             printf_log(LOG_INFO, "Debug level is %d\n", box64_log);
     }
+
+#if !defined(DYNAREC) && (defined(ARM64) || defined(RV64) || defined(LA64))
+    printf_log(LOG_INFO, "Warning: DynaRec is available on this host architecture, an interpreter-only build is probably not intended.\n");
+#endif
+
     p = getenv("BOX64_ROLLING_LOG");
     if(p) {
         int cycle = 0;
@@ -1569,7 +1574,7 @@ static void load_rcfiles()
     if(FileExist("/data/data/com.termux/files/usr/etc/box64.box64rc", IS_FILE))
         LoadRCFile("/data/data/com.termux/files/usr/etc/box64.box64rc");
     #endif
-    
+
     else
         LoadRCFile(NULL);   // load default rcfile
     char* p = getenv("HOME");
@@ -1685,8 +1690,8 @@ int main(int argc, const char **argv, char **env) {
     int wine_steam = 0;
     // check if this is wine
     if(!strcmp(prog, "wine64")
-     || !strcmp(prog, "wine64-development") 
-     || !strcmp(prog, "wine") 
+     || !strcmp(prog, "wine64-development")
+     || !strcmp(prog, "wine")
      || (strrchr(prog, '/') && !strcmp(strrchr(prog,'/'), "/wine"))
      || (strrchr(prog, '/') && !strcmp(strrchr(prog,'/'), "/wine64"))) {
         const char* prereserve = getenv("WINEPRELOADRESERVE");