Fix of global state init.

This commit is contained in:
Christoffer Lerno
2024-08-11 16:55:40 +02:00
parent e67586b8b0
commit 2cd25a489a

View File

@@ -41,7 +41,7 @@ void compiler_init(BuildOptions *build_options)
INFO_LOG("Version: %s", COMPILER_VERSION);
compiler = (CompilerState) { .context.in_panic_mode = false };
compiler.context = (GlobalContext) { .in_panic_mode = false };
// Skip library detection.
//compiler.lib_dir = find_lib_dir();
//DEBUG_LOG("Found std library: %s", compiler.lib_dir);