Skip to content

Commit

Permalink
BLD: use C11 standard (#4652)
Browse files Browse the repository at this point in the history
* 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: scikit-learn/scikit-learn#28977
  • Loading branch information
tylerjereddy authored Aug 6, 2024
1 parent d16b8d4 commit f6a2c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f6a2c29

Please sign in to comment.