Skip to content

Commit

Permalink
Bump from c99 to c11
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Sep 26, 2024
1 parent 0a53b06 commit 7dd64bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ fi

# Most bits look at CFLAGS. But setup.py only looks at CPPFLAGS.
# So we need to set both.
CFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC -I${TOOLS_PATH}/deps/include -I${TOOLS_PATH}/deps/include/ncursesw"
CFLAGS="${EXTRA_TARGET_CFLAGS} -std=c11 -fPIC -I${TOOLS_PATH}/deps/include -I${TOOLS_PATH}/deps/include/ncursesw"
LDFLAGS="${EXTRA_TARGET_LDFLAGS} -L${TOOLS_PATH}/deps/lib"

# Some target configurations use `-fvisibility=hidden`. Python's configure handles
Expand Down
2 changes: 1 addition & 1 deletion cpython-unix/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def python_build_info(
bi["inittab_object"] = "build/Modules/config.o"
bi["inittab_source"] = "build/Modules/config.c"
# TODO ideally we'd get these from the build environment
bi["inittab_cflags"] = ["-std=c99", "-DNDEBUG", "-DPy_BUILD_CORE"]
bi["inittab_cflags"] = ["-std=c11", "-DNDEBUG", "-DPy_BUILD_CORE"]

libraries = set()

Expand Down

0 comments on commit 7dd64bb

Please sign in to comment.