You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #108637 from bruvzg/lto_fix_sse42
[Windows] Fix SSE4.2 detection with LTO build.
This commit is contained in:
@@ -36,6 +36,10 @@ extern int WINAPI mainCRTStartup();
|
|||||||
extern int WINAPI WinMainCRTStartup();
|
extern int WINAPI WinMainCRTStartup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
extern int WINAPI ShimMainCRTStartup() __attribute__((used));
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int WINAPI ShimMainCRTStartup() {
|
extern int WINAPI ShimMainCRTStartup() {
|
||||||
if (IsProcessorFeaturePresent(PF_SSE4_2_INSTRUCTIONS_AVAILABLE)) {
|
if (IsProcessorFeaturePresent(PF_SSE4_2_INSTRUCTIONS_AVAILABLE)) {
|
||||||
#ifdef WINDOWS_SUBSYSTEM_CONSOLE
|
#ifdef WINDOWS_SUBSYSTEM_CONSOLE
|
||||||
|
|||||||
Reference in New Issue
Block a user