summaryrefslogtreecommitdiffstats
path: root/configure
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-112301: Add fortify source level 3 to default compiler options (gh-121520)Nate Ohlson2024-07-181-0/+39
|
* gh-120522: Revert "Add a `--with-app-store-compliance` configure option to ↵Ned Deily2024-07-161-73/+0
| | | | | | patch out problematic code" (gh-120984) (#121844) This reverts commit 48cd104b0cf05dad8958efa9cb9666c029ef9201 prior to the release of 3.13.0b4 to allow for additional review time.
* gh-120831: Increase the default minimum supported iOS version to 13.0 (#121250)Russell Keith-Magee2024-07-161-2/+6
| | | | | Increases the default minimum iOS version to 13.0. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-121103: Put free-threaded libraries in `lib/python3.14t` (#121293)Sam Gross2024-07-111-5/+9
| | | | | On POSIX systems, excluding macOS framework installs, the lib directory for the free-threaded build now includes a "t" suffix to avoid conflicts with a co-located default build installation.
* gh-121554: remove unnecessary internal functions in compile.c (#121555)Irit Katriel2024-07-101-28/+0
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-121201: Disable perf_trampoline on riscv64 for now (#121328)Stefano Rivera2024-07-031-2/+0
| | | | | | | Disable perf_trampoline on riscv64 for now Until support is added in perf_jit_trampoline.c gh-120089 was incomplete.
* gh-61103: Support double complex (_Complex) type in ctypes (#120894)Sergey B Kirpichev2024-07-011-2/+47
| | | | | | | | | | | | | | | | | | Example: ```pycon >>> import ctypes >>> ctypes.__STDC_IEC_559_COMPLEX__ 1 >>> libm = ctypes.CDLL('libm.so.6') >>> libm.clog.argtypes = [ctypes.c_double_complex] >>> libm.clog.restype = ctypes.c_double_complex >>> libm.clog(1+1j) (0.34657359027997264+0.7853981633974483j) ``` Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-113565: Improve and harden detection of curses dependencies (#119816)Erlend E. Aasland2024-07-011-588/+420
| | | | | | | | | | | | | | 1. Use pkg-config to check for ncursesw/panelw. If that fails, use pkg-config to check for ncurses/panel. 2. Regardless of pkg-config output, search for curses/panel headers, so we're sure we have all defines in pyconfig.h. 3. Regardless of pkg-config output, check if libncurses or libncursesw contains the 'initscr' symbol; if it does _and_ pkg-config failed earlier, add the resulting -llib linker option to CURSES_LIBS. Ditto for 'update_panels' and PANEL_LIBS. 4. Wrap the rest of the checks with WITH_SAVE_ENV and make sure we're using updated LIBS and CPPFLAGS for those. Add the PY_CHECK_CURSES convenience macro.
* gh-120522: Add a `--with-app-store-compliance` configure option to patch out ↵Russell Keith-Magee2024-06-301-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | problematic code (#120984) * Add --app-store-compliance configuration option. * Added blurb. * Correct tab-vs-spaces formatting issue. * Correct source file name in docs. Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> * Correct source code reference in Mac docs Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> * Only apply the patch forward, and ensure the working directory is correct. * Make patching reslient to multiple builds. * Documentation fixes found during review Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com> * Documentation and configure.ac syntax improvements Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> * Regenerate configure script. * Silence the patch echo output. --------- Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-120713: Normalize year with century for datetime.strftime (GH-120820)blhsing2024-06-291-0/+52
|
* gh-121040: Remove fallthrough warnings compiler option (gh-121041)Nate Ohlson2024-06-261-39/+0
| | | Remove fallthrough warnings
* gh-121026: Include -Werror with new compiler flag checks to ensure ↵Nate Ohlson2024-06-261-26/+22
| | | | compatibility (gh-121030)
* gh-112301: Enable compiler flags with low performance impact and no warnings ↵Nate Ohlson2024-06-261-0/+124
| | | | (gh-120975)
* gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (#120822)Michael Allwright2024-06-251-8/+8
| | | Add missing space in AS_VAR_APPEND() on CFLAGS.
* gh-120688: Build WASI with -O3 in debug mode (#120691)Victor Stinner2024-06-181-0/+5
| | | | On WASI in debug mode, Python is now built with compiler flag -O3 instead of -Og, to support more recursive calls.
* gh-120507: Double WASI memory (#120648)Victor Stinner2024-06-171-2/+2
| | | | Use 16 MiB stack with 40 MiB memory limit, instead of 8 MiB stack with 20 MiB memory limit.
* gh-120400 :Support Linux perf profile to see Python calls on RISC-V ↵ixgbe002024-06-121-0/+2
| | | | | architecture (#120089) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-120154: Fix Emscripten/WASI pattern in case statement for LDSHARED (#120173)Michael Allwright2024-06-071-1/+1
| | | Fix Emscripten/WASI pattern in case statement for LDSHARED
* gh-115119: Fall back to bundled libmpdec if system libmpdec is not found ↵Erlend E. Aasland2024-05-201-6/+14
| | | | (#119196)
* Regenerate configure for 3.14, which the release script forgot. (#118765)T. Wouters2024-05-081-12/+12
|
* gh-115119: Default to --with-system-libmpdec=yes (#118539)Erlend E. Aasland2024-05-061-14/+70
| | | Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* gh-109617: fix ncurses incompatibility on macOS with Xcode 15 (#111258)Davide Rizzo2024-05-041-11/+44
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-118335: Make REGEN_JIT_COMMAND empty if tier2 interpreter enabled (#118493)Guido van Rossum2024-05-011-9/+15
| | | | Also patch up news blurb for gh-118339 (add warning that PYTHON_UOPS is now PYTHON_JIT).
* gh-116622: Android sysconfig updates (#118352)Malcolm Smith2024-05-011-1/+6
|
* gh-118335: Configure Tier 2 interpreter at build time (#118339)Guido van Rossum2024-05-011-2/+10
| | | | | | | | | | | | | | | | | | | | | | The code for Tier 2 is now only compiled when configured with `--enable-experimental-jit[=yes|interpreter]`. We drop support for `PYTHON_UOPS` and -`Xuops`, but you can disable the interpreter or JIT at runtime by setting `PYTHON_JIT=0`. You can also build it without enabling it by default using `--enable-experimental-jit=yes-off`; enable with `PYTHON_JIT=1`. On Windows, the `build.bat` script supports `--experimental-jit`, `--experimental-jit-off`, `--experimental-interpreter`. In the C code, `_Py_JIT` is defined as before when the JIT is enabled; the new variable `_Py_TIER2` is defined when the JIT *or* the interpreter is enabled. It is actually a bitmask: 1: JIT; 2: default-off; 4: interpreter.
* gh-116622: Redirect stdout and stderr to system log when embedded in an ↵Malcolm Smith2024-04-301-0/+3
| | | | Android app (#118063)
* gh-115119: Detect _decimal dependencies using pkg-config (#115406)Erlend E. Aasland2024-04-291-41/+118
| | | pkg-config is supported for libmpdec 4.0.0 and newer.
* gh-76785: Rename _xxsubinterpreters to _interpreters (gh-117791)Eric Snow2024-04-241-42/+42
| | | See https://discuss.python.org/t/pep-734-multiple-interpreters-in-the-stdlib/41147/26.
* gh-116984: Install mimalloc headers (#116985)Yichen Yan2024-04-231-1/+2
| | | | - Install mimalloc header only when enabled - Rename WITH_MIMALLOC to INSTALL_MIMALLOC
* gh-117845: Detect libedit hook function signature in configure (#117870)Joshua Root2024-04-171-0/+50
| | | | | | Older libedit versions (like Apple's) use a different type signature for rl_startup_hook and rl_pre_input_hook. Add a configure check to determine which signature is accepted by introducing the Py_RL_STARTUP_HOOK_TAKES_ARGS macro in pyconfig.h.
* gh-117645: Increase WASI stack size from 512 KiB to 8 MiB (#117674)Victor Stinner2024-04-161-1/+1
| | | | | Increase also the initial memory from 10 MiB to 20 MiB. Reenable test_dynamic on WASI build.
* Autoconf: aarch64-apple-darwin/clang is now a tier 1 platform (#117861)Erlend E. Aasland2024-04-141-3/+3
| | | See also python/pep#3705
* gh-96398: Fix mpicc check in configure.ac (#117857)Erlend E. Aasland2024-04-131-1/+1
|
* gh-96398: Detect GCC compatible compilers in configure (#117825)Erlend E. Aasland2024-04-131-1/+28
| | | | Introduce a cached variable $ac_cv_gcc_compat and set it to 'yes' if the C preprocessor defines the __GNUC__ macro.
* gh-96398: Detect emcc and mpicc in compiler names in configure (#117819)Erlend E. Aasland2024-04-121-1/+6
| | | | - emcc defines __EMSCRIPTEN__ - mpicc doesn't define anything in particular; detect it using basename
* gh-117752: Autoconf: fix PGO builds for 'make -C build' incantations (#117803)Erlend E. Aasland2024-04-121-4/+4
|
* gh-117752: Autoconf: fix -fno-semantic-interposition check (#117789)Erlend E. Aasland2024-04-121-7/+7
| | | Force the compiler to issue an error if the flag is not supported.
* gh-117752: Autoconf: store all LLVM profile data in the build directory ↵Erlend E. Aasland2024-04-121-2/+2
| | | | | (#117790) This prevents spurious 'env changed' and llvm-profdata merge errors.
* gh-117787: Autoconf: fix bashisms/semantic breakage of iOS checks (#117788)Eli Schwartz2024-04-111-1/+1
|
* gh-116303: Don't build xxlimited and xxlimited_35 if --disable-test-modules ↵Erlend E. Aasland2024-04-051-2/+2
| | | | is given (#117554)
* gh-114099: Additions to standard library to support iOS (GH-117052)Russell Keith-Magee2024-03-281-8/+13
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Ned Deily <nad@python.org>
* gh-71052: Add Android build script and instructions (#116426)Malcolm Smith2024-03-211-8/+21
|
* gh-114099 - Add iOS framework loading machinery. (GH-116454)Russell Keith-Magee2024-03-191-1/+0
| | | | Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* gh-108716: Cleanup remaining deepfreeze infrastructure (#116919)Guido van Rossum2024-03-181-2/+1
| | | | | Keep Tools/build/deepfreeze.py around (we may repurpose it for deepfreezing non-code objects), and keep basic "clean" targets that remove the output of former deep-freeze activities, to keep the build directories of current devs clean.
* GH-115983: skip building shared modules for testing under WASI (GH-116528)Brett Cannon2024-03-131-0/+6
|
* gh-71052: Change Android's `sys.platform` from "linux" to "android"Malcolm Smith2024-03-111-0/+1
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-116303: Explicitly check for the _testsinglephase module in configure.ac ↵Erlend E. Aasland2024-03-071-0/+44
| | | | (#116479)
* gh-116417: Add _testlimitedcapi C extension (#116419)Victor Stinner2024-03-071-0/+45
| | | | | | | | | | | | | Add a new C extension "_testlimitedcapi" which is only built with the limited C API. Move heaptype_relative.c and vectorcall_limited.c from Modules/_testcapi/ to Modules/_testlimitedcapi/. * configure: add _testlimitedcapi test extension. * Update generate_stdlib_module_names.py. * Update make check-c-globals. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-114099 - Add iOS testbed, plus Makefile target to invoke it. (gh-115930)Russell Keith-Magee2024-03-071-52/+98
|
* GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2 ↵Brett Cannon2024-03-051-1/+1
| | | | | | | | | primitives (#116327) * GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2 primitives * Add the configure changes * Update `wasm_build.py`