mirror of
https://github.com/microsoft/terminal.git
synced 2026-07-08 18:16:28 +00:00
Migrate some pull requests from OS (#20181)
Some work was required to ensure conhost builds. --------- Co-authored-by: Dragos Sambotin <dragoss@microsoft.com> Co-authored-by: Daniel Paoliello (HE HIM) <danpao@microsoft.com>
This commit is contained in:
1
.github/actions/spelling/expect/expect.txt
vendored
1
.github/actions/spelling/expect/expect.txt
vendored
@@ -241,6 +241,7 @@ consoletaeftemplates
|
||||
consoleuwp
|
||||
CONSOLEWINDOWOWNER
|
||||
consrv
|
||||
consteval
|
||||
constexprable
|
||||
contentfiles
|
||||
conterm
|
||||
|
||||
@@ -84,8 +84,18 @@
|
||||
// {fmt}, a C++20-compatible formatting library
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4702) // unreachable code
|
||||
// Workaround: clang-cl advertises consteval support but fmt's use of it in
|
||||
// color.h triggers "call to consteval function is not a constant expression".
|
||||
// Hide __cpp_lib_is_constant_evaluated so fmt falls back to the non-consteval path.
|
||||
#ifdef __clang__
|
||||
#pragma push_macro("__cpp_lib_is_constant_evaluated")
|
||||
#undef __cpp_lib_is_constant_evaluated
|
||||
#endif
|
||||
#include <fmt/compile.h>
|
||||
#include <fmt/xchar.h>
|
||||
#ifdef __clang__
|
||||
#pragma pop_macro("__cpp_lib_is_constant_evaluated")
|
||||
#endif
|
||||
#pragma warning(pop)
|
||||
|
||||
#define USE_INTERVAL_TREE_NAMESPACE
|
||||
|
||||
@@ -35,7 +35,8 @@ USE_NATIVE_EH = 1
|
||||
|
||||
USE_STD_CPP20 = 1
|
||||
MSC_WARNING_LEVEL = /W4 /WX
|
||||
USER_C_FLAGS = $(USER_C_FLAGS) /Zc:preprocessor /fp:contract /utf-8
|
||||
USER_C_FLAGS = $(USER_C_FLAGS) /fp:contract /utf-8
|
||||
ZC_PREPROCESSOR = 1
|
||||
|
||||
# -------------------------------------
|
||||
# Common Console Includes and Libraries
|
||||
|
||||
@@ -46,8 +46,18 @@
|
||||
// {fmt}, a C++20-compatible formatting library
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4702) // unreachable code
|
||||
// Workaround: clang-cl advertises consteval support but fmt's use of it in
|
||||
// color.h triggers "call to consteval function is not a constant expression".
|
||||
// Hide __cpp_lib_is_constant_evaluated so fmt falls back to the non-consteval path.
|
||||
#ifdef __clang__
|
||||
#pragma push_macro("__cpp_lib_is_constant_evaluated")
|
||||
#undef __cpp_lib_is_constant_evaluated
|
||||
#endif
|
||||
#include <fmt/compile.h>
|
||||
#include <fmt/xchar.h>
|
||||
#ifdef __clang__
|
||||
#pragma pop_macro("__cpp_lib_is_constant_evaluated")
|
||||
#endif
|
||||
#pragma warning(pop)
|
||||
|
||||
#include <til.h>
|
||||
|
||||
Reference in New Issue
Block a user