Sam Gross
6fafa6b919
gh-108374: Add --disable-gil option to PCbuild/build.bat ( #108729 )
...
This adds a `--disable-gil` option to PCbuild/build.bat. For now, all
this does is define the Py_NOGIL macro.
2023-09-02 16:13:00 -05:00
Steve Dower
58f0bda341
ARM64 clamping bug also exists in MSVC 14.35 (GH-105679)
2023-06-12 15:09:14 +00:00
Steve Dower
24ba507b1d
gh-103097: Add workaround for Windows ARM64 compiler bug (GH-103098)
...
See https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361 for details of the issue. It only applies to version 14.34.
2023-03-29 00:47:13 +01:00
Steve Dower
737d367b1f
gh-77532: Minor tweaks to allow compiling with PlatformToolset=ClangCL on Windows (GH-101352)
...
To use this, ensure that clang support was selected in Visual Studio Installer, then set the PlatformToolset environment variable to "ClangCL" and build as normal from the command line.
It remains unsupported, but at least is possible now for experimentation.
2023-01-27 14:45:08 +00:00
Steve Dower
5c19ddab65
gh-92348: Add quotes to support building on Windows with spaces in directory name (GH-94925)
2022-07-17 15:20:24 +01:00
David Machaj
38feffa09c
gh-92984: Explicitly disable incremental linking for Windows Release and PGO builds (GH-92985)
2022-05-19 22:44:03 +01:00
Jeremy Kloth
98dd0aec2d
bpo-46778: Enable multiprocess compilation for source files when building on Windows (GH-31390)
2022-02-17 18:40:33 +00:00
Steve Dower
6fc91daf73
bpo-46088: Automatically detect or install bootstrap Python runtime when building from Visual Studio (GH-30143)
2021-12-18 13:05:45 +00:00
Steve Dower
b0b3086279
bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build directories (GH-29979)
2021-12-08 02:18:21 +00:00
Crowthebird
d9301703fb
bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577)
2021-12-03 19:47:38 +00:00
Christian Heimes
03e9f5dc75
bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157)
...
setup.py no longer defines Py_BUILD_CORE_MODULE. Instead every
module defines the macro before #include "Python.h" unless
Py_BUILD_CORE_BUILTIN is already defined.
Py_BUILD_CORE_BUILTIN is defined for every module that is built by
Modules/Setup.
The PR also simplifies Modules/Setup. Makefile and makesetup
already define Py_BUILD_CORE_BUILTIN and include Modules/internal
for us.
Signed-off-by: Christian Heimes <christian@python.org>
2021-10-22 15:36:28 +02:00
Steve Dower
5af56c6f2a
bpo-44381: Windows build now allows enabling control flow guard (GH-26645)
2021-06-11 21:35:40 +01:00
Austin Lamb
b4af629f4d
bpo-42825: Enable /OPT:REF (GH-24098)
...
We explicitly disable /OPT:ICF as some manual optimisations depend on some functions still having distinct pointers (such as wrap_binary_func and wrap_binary_func_l).
2021-02-19 23:27:01 +00:00
Inada Naoki
fedd86df24
bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)
2021-02-12 09:06:47 +09:00
Steve Dower
db6434c474
Enable signing of nuget.org packages and update to supported timestamp server (GH-23132)
2020-11-03 22:31:49 +00:00
Steve Dower
dcbaa1b49c
bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297)
...
Also enables using debug build of `python3_d.dll`
Reference: CVE-2020-15523
2020-07-06 17:32:00 +01:00
Nikita Nemkin
4efc3360c9
bpo-41054: Simplify resource compilation on Windows (GH-21004)
...
Remove auto-generated resource header. Pass definitions required
by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource
compiler.
Remove unused MS_DLL_ID resource string and related dead code.
2020-06-23 20:05:57 +01:00
Steve Dower
894adc18b4
bpo-39930: Fix MSBuild detection for Build Tools (GH-18938)
...
Ensure we detect Build Tools installs using the newer logic, and skip looking in the registry for VS 2017.
2020-03-11 16:24:30 -07:00
Steve Dower
fde44ae6d0
bpo-39930: Convert error to warning for more silent failure (GH-18921)
...
Makes it an error to create a layout without vcruntime DLL
2020-03-11 14:12:31 +00:00
Steve Dower
2dd41740c9
bpo-39930: Ensure vcruntime140.dll is included in all Windows packages (GH-18918)
...
Also adds GitHub CI test for Windows installer changes
2020-03-11 11:18:12 +00:00
animalize
8bd2872adb
bpo-25361: Enable SSE2 instructions for Windows 32-bit build (GH-12438)
2019-06-24 16:43:26 -07:00
Steve Dower
21a92f8cda
Implement Windows release builds in Azure Pipelines (GH-14065)
2019-06-14 08:29:20 -07:00
Paul Monson
f96e7fd924
bpo-36941: Windows build changes for Windows ARM64 (GH-13365)
2019-05-17 10:07:24 -07:00
Paul Monson
8a1657b934
bpo-35976: Enable Windows projects to build with platform ARM32 (GH-11825)
...
This change adds the necessary items to the build projects to avoid erroring out right at the start. It does not add _support_ for targeting Windows on ARM32, but is a necessary prerequisite for adding it.
2019-02-14 08:31:30 -08:00
Steve Dower
d3bbc52413
Enable signing Windows builds with SHA1 environment variable (GH-11279)
2018-12-21 13:48:18 -08:00
Victor Stinner
27e2d1f219
bpo-35081: Add pycore_ prefix to internal header files (GH-10263)
...
* Rename Include/internal/ header files:
* pyatomic.h -> pycore_atomic.h
* ceval.h -> pycore_ceval.h
* condvar.h -> pycore_condvar.h
* context.h -> pycore_context.h
* pygetopt.h -> pycore_getopt.h
* gil.h -> pycore_gil.h
* hamt.h -> pycore_hamt.h
* hash.h -> pycore_hash.h
* mem.h -> pycore_mem.h
* pystate.h -> pycore_state.h
* warnings.h -> pycore_warnings.h
* PCbuild project, Makefile.pre.in, Modules/Setup: add the
Include/internal/ directory to the search paths of header files.
* Update includes. For example, replace #include "internal/mem.h"
with #include "pycore_mem.h".
2018-11-01 00:52:28 +01:00
Victor Stinner
a05bef4f5b
bpo-35059, PCbuild: Expand inline funcs in Debug (GH-10094)
...
Visual Studio solution: Set InlineFunctionExpansion to
OnlyExplicitInline ("/Ob1" option) on all projects (in
pyproject.props) in Debug mode on Win32 and x64 platforms to expand
functions marked as inline.
This change should make Python compiled in Debug mode a little bit
faster on Windows. On Unix, GCC uses -Og optimization level for
./configure --with-pydebug.
2018-10-26 15:10:29 +02:00
Jeremy Kloth
fa5329424f
bpo-34980: P/Invoke QueryFullProcessImageName to get process names (GH-9901)
2018-10-23 07:41:48 -04:00
Steve Dower
0d2a9088d1
bpo-31944: Fixes build and Modify button ( #4278 )
2017-11-04 16:28:47 -07:00
Steve Dower
2084b30e54
bpo-31523: Reliability improvements to the Windows build files ( #3900 )
2017-10-05 13:35:36 -07:00
Steve Dower
5fcd5e64ee
bpo-31340: Change to building with MSVC v141 (included with Visual Studio 2017) ( #3311 )
2017-09-06 10:01:38 -07:00
Steve Dower
68d663cf85
[bpo-30916] Pre-build OpenSSL and Tcl/Tk for Windows ( #2688 )
...
Updates ssl and tkinter projects to use pre-built externals
2017-07-17 11:15:48 +02:00
Steve Dower
425ec150ea
Issue #28402 : Adds signed catalog files for stdlib on Windows.
2016-10-09 20:18:52 -07:00
Steve Dower
e7da2f8380
Make PGO use usual build directory on Windows.
2016-09-11 20:19:35 -07:00
Steve Dower
6ed63f31e9
Fixes default intermediate directory when building on Windows.
2016-07-24 18:03:22 -07:00
Steve Dower
df450d1a18
Issue #27469 : Adds a shell extension to the launcher so that drag and drop works correctly.
2016-07-16 16:17:33 -07:00
Steve Dower
6fd76bceda
Fixes use of Py_IntDir and Py_OutDir to control build directories.
2016-07-16 16:13:19 -07:00
Steve Dower
b0660582cc
Adds version info to all signed binaries on Windows.
2016-04-06 12:35:24 -07:00
Steve Dower
84d9fe3953
Updates build to use SHA256 hash when signing files.
2016-02-08 09:24:46 -08:00
Zachary Ware
4c5ad9452b
Issue #25934 : Default to /fp:strict for ICC builds
2016-01-29 19:08:55 -06:00
Steve Dower
940f6a8f11
Improves handling of test markers for building Python without intefering with actual installs.
2015-10-31 12:17:11 -07:00
Steve Dower
5700ae877f
Issue #25361 : Disables use of SSE2 instructions in Windows 32-bit build
2015-10-11 15:15:52 -07:00
Steve Dower
fcbe1df4af
Issue #25027 : Reverts partial-static build options and adds vcruntime140.dll to Windows installation.
2015-09-08 21:39:01 -07:00
Steve Dower
de9fb28bf1
Allow intermediate build directory to be overridden.
2015-07-27 14:56:58 -07:00
Steve Dower
6d58f8dc52
Issue 24476: Statically links vcruntime140.dll and removes it from the installer
2015-06-19 10:49:04 -07:00
Steve Dower
bb24087a2c
Issue #23260 : Update Windows installer
2015-02-05 22:08:48 -08:00
Steve Dower
2587952f2f
Fixes sys.winver generation and removes dependency on user32.dll
2015-01-15 09:10:16 -08:00
Steve Dower
f4f1080e2e
Prevent warning MSB4057: The target "InitializeBuildStatus" does not exist in the project.
2014-12-12 13:45:25 -08:00
Steve Dower
10e65856a3
Removes use of ValueOrDefault function that is not always available on the buildbots.
2014-12-12 12:18:11 -08:00
Steve Dower
65e4cb10d9
Issue #22919 : Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.
2014-11-22 12:54:57 -08:00