diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-06-28 23:44:03 -0400 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:40 -0400 |
commit | 2e5af95541adf581364ee3864be57f9b2b9a230f (patch) | |
tree | 939e3d203ecc1ea98fae168745004c28cdb9b007 /src/shader_recompiler/backend/glasm/emit_context.h | |
parent | b9069c7891f2516ea037e9355daea284a1d540f1 (diff) |
shader: GCC fmt 8.0.0 fixes
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_context.h')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_context.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_context.h b/src/shader_recompiler/backend/glasm/emit_context.h index 9f86e55d33..1da51a9965 100644 --- a/src/shader_recompiler/backend/glasm/emit_context.h +++ b/src/shader_recompiler/backend/glasm/emit_context.h @@ -37,21 +37,23 @@ public: template <typename... Args> void Add(const char* format_str, IR::Inst& inst, Args&&... args) { - code += fmt::format(format_str, reg_alloc.Define(inst), std::forward<Args>(args)...); + code += fmt::format(fmt::runtime(format_str), reg_alloc.Define(inst), + std::forward<Args>(args)...); // TODO: Remove this code += '\n'; } template <typename... Args> void LongAdd(const char* format_str, IR::Inst& inst, Args&&... args) { - code += fmt::format(format_str, reg_alloc.LongDefine(inst), std::forward<Args>(args)...); + code += fmt::format(fmt::runtime(format_str), reg_alloc.LongDefine(inst), + std::forward<Args>(args)...); // TODO: Remove this code += '\n'; } template <typename... Args> void Add(const char* format_str, Args&&... args) { - code += fmt::format(format_str, std::forward<Args>(args)...); + code += fmt::format(fmt::runtime(format_str), std::forward<Args>(args)...); // TODO: Remove this code += '\n'; } |