forked from pyinstaller/pyinstaller
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bootloader: set bootloader's stack size on Windows to 2 MB
When building the bootloader executables on Windows, set their stack size to 2 MB to match the stack size of the python executable, in order to eliminate behavior differences stemming from difference in stack size (e.g., stack overflow occurring sooner in a frozen version compared to the unfrozen one, due to default stack size of MSVC-compiled binaries being 1 MiB, while python uses 2 MB).
- Loading branch information
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(Windows) Set the bootloader executable's stack size to 2 MB to match the | ||
stack size of the python interpreter executable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(Windows) Fix stack overflow in `pyarmor`-protected frozen applications, caused | ||
by the executable's stack being smaller than that of the python interpreter. |