Skip to content

Commit d4fa2e4

Browse files
committed
commit
1 parent 95e9b6f commit d4fa2e4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Python/ceval_macros.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,14 @@
7878
# define TAIL_CALL_ARGS frame, stack_pointer, tstate, next_instr, instruction_funcptr_table, oparg
7979
#endif
8080

81-
#if _Py_TAIL_CALL_INTERP && (defined(__clang__) || defined(__GNUC__))
82-
# if !_Py__has_attribute(preserve_none) || !_Py__has_attribute(musttail)
83-
# error "This compiler does not have support for efficient tail calling."
81+
#if _Py_TAIL_CALL_INTERP
82+
# if defined(__clang__) || defined(__GNUC__)
83+
# if !_Py__has_attribute(preserve_none) || !_Py__has_attribute(musttail)
84+
# error "This compiler does not have support for efficient tail calling."
85+
# endif
8486
# endif
87+
#elif defined(_MSC_VER) && (_MSC_VER < 1950)
88+
# error "You need atleast VS 2026 / PlatformToolset v145 for tail calling."
8589
#endif
8690

8791
// Note: [[clang::musttail]] works for GCC 15, but not __attribute__((musttail)) at the moment.

0 commit comments

Comments
 (0)