2022-03-18 15:41:41 +00:00
|
|
|
Index: electron-17.1.0/base/compiler_specific.h
|
2021-06-29 20:42:56 +00:00
|
|
|
===================================================================
|
2022-03-18 15:41:41 +00:00
|
|
|
--- electron-17.1.0.orig/base/compiler_specific.h 2022-03-07 17:20:29.460807562 +0100
|
|
|
|
+++ electron-17.1.0/base/compiler_specific.h 2022-03-09 08:28:51.902933750 +0100
|
|
|
|
@@ -366,7 +366,8 @@ inline constexpr bool AnalyzerAssumeTrue
|
2021-06-29 20:42:56 +00:00
|
|
|
#endif // defined(__clang_analyzer__)
|
|
|
|
|
|
|
|
// Use nomerge attribute to disable optimization of merging multiple same calls.
|
2022-09-21 09:00:14 +00:00
|
|
|
-#if defined(__clang__) && HAS_ATTRIBUTE(nomerge)
|
2021-06-29 20:42:56 +00:00
|
|
|
+#if defined(__clang__) && (__clang_major__ >= 12) && \
|
|
|
|
+ __has_attribute(nomerge) && !defined(OS_CHROMEOS)
|
|
|
|
#define NOMERGE [[clang::nomerge]]
|
|
|
|
#else
|
|
|
|
#define NOMERGE
|