Fix MS-Windows build with native-compilation

* src/w32.c (globals_of_w32): Move re-initialization of
Vlibrary_cache from here...
* src/emacs.c (main): ...to here, as it must be after load_pdump.
(Bug#71916)
This commit is contained in:
Eli Zaretskii 2024-07-03 22:13:42 +03:00
parent fc375359ed
commit 3eaf1abbff
2 changed files with 4 additions and 4 deletions

View file

@ -2179,6 +2179,10 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
init_atimer ();
#ifdef WINDOWSNT
/* We need to forget about libraries that were loaded during the
dumping process (e.g. libgccjit). This must be done _after_
load_pdump. */
Vlibrary_cache = Qnil;
#ifdef HAVE_W32NOTIFY
globals_of_w32notify ();
#endif

View file

@ -10969,10 +10969,6 @@ globals_of_w32 (void)
#endif
w32_crypto_hprov = (HCRYPTPROV)0;
/* We need to forget about libraries that were loaded during the
dumping process (e.g. libgccjit) */
Vlibrary_cache = Qnil;
}
/* For make-serial-process */