mirror of
https://github.com/fmtlib/fmt.git
synced 2025-04-16 05:42:19 +00:00
Workaround an ICE when using modules with gcc 14.2 and earlier
This commit is contained in:
parent
8303d140a1
commit
c43da35701
@ -69,8 +69,6 @@ function(add_module_library name)
|
|||||||
target_compile_options(${name} PUBLIC -fmodules-ts)
|
target_compile_options(${name} PUBLIC -fmodules-ts)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
target_compile_definitions(${name} PRIVATE FMT_MODULE)
|
|
||||||
|
|
||||||
if (FMT_USE_CMAKE_MODULES)
|
if (FMT_USE_CMAKE_MODULES)
|
||||||
target_sources(${name} PUBLIC FILE_SET fmt TYPE CXX_MODULES
|
target_sources(${name} PUBLIC FILE_SET fmt TYPE CXX_MODULES
|
||||||
FILES ${sources})
|
FILES ${sources})
|
||||||
|
@ -299,7 +299,7 @@
|
|||||||
|
|
||||||
// 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__)
|
#if !defined(__OPTIMIZE__) && !defined(__CUDACC__) && !defined(FMT_MODULE)
|
||||||
FMT_PRAGMA_GCC(optimize("Og"))
|
FMT_PRAGMA_GCC(optimize("Og"))
|
||||||
#endif
|
#endif
|
||||||
FMT_PRAGMA_CLANG(diagnostic push)
|
FMT_PRAGMA_CLANG(diagnostic push)
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
module;
|
module;
|
||||||
|
|
||||||
|
#define FMT_MODULE
|
||||||
|
|
||||||
#ifdef _MSVC_LANG
|
#ifdef _MSVC_LANG
|
||||||
# define FMT_CPLUSPLUS _MSVC_LANG
|
# define FMT_CPLUSPLUS _MSVC_LANG
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user