Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3778 from MartinNowak/fix13117
fix Issue 13117 - Executable size of hello world explodes from 472K to 2.7M
- Loading branch information
1 parent
5b9f27c
commit 239394c
Showing
3 changed files
with
35 additions
and
4 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,13 @@ | ||
// PERMUTE_ARGS: -O -release -g | ||
import std.file, std.stdio; | ||
|
||
int main() | ||
{ | ||
auto size = thisExePath.getSize(); | ||
writeln(size); | ||
version (D_LP64) | ||
enum limit = 1195096; | ||
else | ||
enum limit = 1042973; | ||
return size > limit * 11 / 10; | ||
} |
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,14 @@ | ||
// REQUIRED_ARGS: -inline | ||
// PERMUTE_ARGS: -O -release -g | ||
import std.file, std.stdio; | ||
|
||
int main() | ||
{ | ||
auto size = thisExePath.getSize(); | ||
writeln(size); | ||
version (D_LP64) | ||
enum limit = 2023652; | ||
else | ||
enum limit = 1763328; | ||
return size > limit * 11 / 10; | ||
} |