mirror of
https://github.com/python/cpython.git
synced 2025-10-26 19:24:34 +00:00
[3.13] gh-127906: Backport test_cppext changes from the main branch (#127914)
This commit is contained in:
parent
8384279863
commit
b620e503eb
2 changed files with 10 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
|
||||
SOURCE = 'extension.cpp'
|
||||
|
||||
if not support.MS_WINDOWS:
|
||||
# C++ compiler flags for GCC and clang
|
||||
CPPFLAGS = [
|
||||
|
|
@ -19,8 +20,13 @@
|
|||
'-Werror',
|
||||
]
|
||||
else:
|
||||
# Don't pass any compiler flag to MSVC
|
||||
CPPFLAGS = []
|
||||
# MSVC compiler flags
|
||||
CPPFLAGS = [
|
||||
# Display warnings level 1 to 4
|
||||
'/W4',
|
||||
# Treat all compiler warnings as compiler errors
|
||||
'/WX',
|
||||
]
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue