From 5e2c9abe5fd49b367be41d48819ed38ac61f4308 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Sat, 4 Dec 2021 19:50:29 +0100 Subject: [PATCH] early-access version 2271 --- README.md | 2 +- src/CMakeLists.txt | 3 ++- src/common/assert.h | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ea5f10c9c..26660d914 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 2266. +This is the source code for early-access 2271. ## Legal Notice diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 63dd9febf..6d352aaed 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,6 +36,7 @@ if (MSVC) add_compile_options( /MP /Zi + /Zf /Zo /permissive- /EHsc @@ -79,7 +80,7 @@ if (MSVC) add_compile_options("$<$:/GS->") set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG /MANIFEST:NO" CACHE STRING "" FORCE) - set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) + set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) else() add_compile_options( -Wall diff --git a/src/common/assert.h b/src/common/assert.h index 33060d865..dedaa88e2 100755 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -32,14 +32,14 @@ assert_noinline_call(const Fn& fn) { #define ASSERT(_a_) \ do \ - if (!(_a_)) { \ + if (!(_a_)) [[unlikely]] { \ assert_noinline_call([] { LOG_CRITICAL(Debug, "Assertion Failed!"); }); \ } \ while (0) #define ASSERT_MSG(_a_, ...) \ do \ - if (!(_a_)) { \ + if (!(_a_)) [[unlikely]] { \ assert_noinline_call([&] { LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \ } \ while (0) @@ -70,7 +70,7 @@ assert_noinline_call(const Fn& fn) { #define ASSERT_OR_EXECUTE(_a_, _b_) \ do { \ ASSERT(_a_); \ - if (!(_a_)) { \ + if (!(_a_)) [[unlikely]] { \ _b_ \ } \ } while (0) @@ -79,7 +79,7 @@ assert_noinline_call(const Fn& fn) { #define ASSERT_OR_EXECUTE_MSG(_a_, _b_, ...) \ do { \ ASSERT_MSG(_a_, __VA_ARGS__); \ - if (!(_a_)) { \ + if (!(_a_)) [[unlikely]] { \ _b_ \ } \ } while (0)