From aa51b22f9c3057dd9e41a906177926f40abca707 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Tue, 20 May 2025 20:23:02 +0200 Subject: [PATCH] Add a safety check that the file is being compiled correctly --- src/gamemain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gamemain.cpp b/src/gamemain.cpp index f54ba680c..7f118643f 100644 --- a/src/gamemain.cpp +++ b/src/gamemain.cpp @@ -11,6 +11,10 @@ int I_GameMain(HINSTANCE hInstance, HINSTANCE nothing, LPWSTR cmdline, int nCmdS #include #pragma comment(linker,"/ENTRY:mainStartup") +#ifdef __AVX2__ +#error "This file must be compiled with /arch:SSE2" +#endif + extern "C" { int WINAPI wWinMainCRTStartup();