Skip to content

Commit

Permalink
d_do_test: Don't link with OPT:NOICF by default on windows
Browse files Browse the repository at this point in the history
The issue related to COMDAT folding was fixed in dlang#11736.
  • Loading branch information
MoonlightSentinel authored and UplinkCoder committed Jan 5, 2021
1 parent a67635a commit e276b11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions test/runnable/test17338.d
@@ -1,5 +1,8 @@
// PERMUTE_ARGS:

// COMDAT folding increases runtime by > 80x
// REQUIRED_ARGS(windows): -L/OPT:NOICF

// Apparently omf or optlink does not support more than 32767 symbols.
// DISABLED: win32

Expand Down
5 changes: 0 additions & 5 deletions test/tools/d_do_test.d
Expand Up @@ -452,11 +452,6 @@ bool gatherTestParameters(ref TestArgs testArgs, string input_dir, string input_
if (testArgs.mode == TestMode.FAIL_COMPILE)
testArgs.requiredArgs = "-verrors=0 " ~ testArgs.requiredArgs;

// https://issues.dlang.org/show_bug.cgi?id=10664: exceptions don't work reliably with COMDAT folding
// it also slows down some tests drastically, e.g. runnable/test17338.d
if (envData.usingMicrosoftCompiler)
testArgs.requiredArgs ~= " -L/OPT:NOICF";

{
string argSetsStr;
findTestParameter(envData, file, "ARG_SETS", argSetsStr, ";");
Expand Down

0 comments on commit e276b11

Please sign in to comment.