mirror of
https://github.com/fmtlib/fmt.git
synced 2026-06-15 08:26:13 +08:00
fix GCC PCH Breakage Triggered by fmt Scoped #pragma GCC optimize(0g)
This commit is contained in:
parent
9cb8c0f92b
commit
2f18a88e68
@ -224,9 +224,14 @@
|
|||||||
# define FMT_PRAGMA_CLANG(x)
|
# define FMT_PRAGMA_CLANG(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef FMT_USE_OPTIMIZE_PRAGMA
|
||||||
|
# define FMT_USE_OPTIMIZE_PRAGMA 1
|
||||||
|
#endif
|
||||||
|
|
||||||
// Enable minimal optimizations for more compact code in debug mode.
|
// Enable minimal optimizations for more compact code in debug mode.
|
||||||
FMT_PRAGMA_GCC(push_options)
|
FMT_PRAGMA_GCC(push_options)
|
||||||
#if !defined(__OPTIMIZE__) && !defined(__CUDACC__) && !defined(FMT_MODULE)
|
#if FMT_USE_OPTIMIZE_PRAGMA && !defined(__OPTIMIZE__) && \
|
||||||
|
!defined(__CUDACC__) && !defined(FMT_MODULE)
|
||||||
FMT_PRAGMA_GCC(optimize("Og"))
|
FMT_PRAGMA_GCC(optimize("Og"))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user