mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
Fix: work around GCC compiler bug #105120 in fmt
The fmt code pushes a pragma option, and later pops is. The intrinsics code interacts with it via the __OPTIMIZE__ macro. This has been set by the pragma option push, but not unset/reset to the original with the pop. Since the pragma is only used for the GCC compiler (not Clang, not MSVC, not ICC) and in debug mode, just remove the whole pragma handling for it.
This commit is contained in:
5
src/3rdparty/fmt/core.h
vendored
5
src/3rdparty/fmt/core.h
vendored
@@ -250,12 +250,7 @@
|
||||
# define FMT_INLINE_VARIABLE
|
||||
#endif
|
||||
|
||||
// Enable minimal optimizations for more compact code in debug mode.
|
||||
FMT_GCC_PRAGMA("GCC push_options")
|
||||
#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER) && !defined(__LCC__) && \
|
||||
!defined(__CUDACC__)
|
||||
FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
|
||||
#endif
|
||||
|
||||
FMT_BEGIN_NAMESPACE
|
||||
|
||||
|
Reference in New Issue
Block a user