From f6a2c29f67cd897078c71af9a89cf94d0daef6ef Mon Sep 17 00:00:00 2001 From: Tyler Reddy Date: Tue, 6 Aug 2024 17:53:23 -0600 Subject: [PATCH] BLD: use C11 standard (#4652) * Fixes gh-4651 * The reason that bumping to the C11 standard for the C language helps us build with free-threaded CPython `3.13.0rc1` is described at: https://github.com/scikit-learn/scikit-learn/issues/28977 --- package/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/setup.py b/package/setup.py index bd4aee30cc..0fc4bef4e2 100755 --- a/package/setup.py +++ b/package/setup.py @@ -259,7 +259,7 @@ def extensions(config): use_openmp = config.get('use_openmp', default=True) annotate_cython = config.get('annotate_cython', default=False) - extra_compile_args = ['-std=c99', '-O3', '-funroll-loops', + extra_compile_args = ['-std=c11', '-O3', '-funroll-loops', '-fsigned-zeros'] # see #2722 define_macros = [] if config.get('debug_cflags', default=False):