Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 767308a

Browse files
committed
Move cflags configure option to top level build configuration
1 parent 64dae84 commit 767308a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ jobs:
224224
config_hash: ${{ needs.check_source.outputs.config_hash }}
225225
options: |
226226
../cpython-ro-srcdir/configure \
227+
CFLAGS="-fdiagnostics-format=json"
227228
--config-cache \
228229
--with-pydebug \
229230
--with-openssl=$OPENSSL_DIR
@@ -237,6 +238,7 @@ jobs:
237238
config_hash: ${{ needs.check_source.outputs.config_hash }}
238239
options: |
239240
../cpython-ro-srcdir/configure \
241+
CFLAGS="-fdiagnostics-format=json"
240242
--config-cache \
241243
--with-pydebug \
242244
--with-openssl=$OPENSSL_DIR \

.github/workflows/reusable-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
6464
- name: Configure CPython out-of-tree
6565
working-directory: ${{ env.CPYTHON_BUILDDIR }}
66-
run: ${{ inputs.options }} CFLAGS="-fdiagnostics-format=json"
66+
run: ${{ inputs.options }}
6767
- name: Build CPython out-of-tree
6868
working-directory: ${{ env.CPYTHON_BUILDDIR }}
6969
run: make -j4 &> compiler_output.txt

Tools/build/check_warnings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ def get_unexpected_warnings(
6969
for warning in unexpected_warnings:
7070
print(warning)
7171
return 1
72-
73-
return 0
7472

73+
return 0
7574

7675
def get_unexpected_improvements(
7776
warnings: list[dict],

0 commit comments

Comments
 (0)