Get rid of some obsolete optlink workarounds

This commit is contained in:
Martin Kinkelin 2024-05-25 17:51:41 +02:00
parent 920678a820
commit 6d69608aae
5 changed files with 2 additions and 49 deletions

View file

@ -259,6 +259,7 @@ string[] buildCmdArgs(string runnerPath, string outputPath, const string[] testF
"-version=NoMain",
"-version=MARS",
"-version=DMDLIB",
"-g",
"-unittest",
"-J" ~ buildOutputPath,
"-Jsrc/dmd/res",
@ -277,10 +278,6 @@ string[] buildCmdArgs(string runnerPath, string outputPath, const string[] testF
if (environment.get("DMD_TEST_COVERAGE", "0") == "1")
flags ~= "-cov";
// older versions of Optlink causes: "Error 45: Too Much DEBUG Data for Old CodeView format"
if (!usesOptlink)
flags ~= "-g";
return flags;
}
@ -306,15 +303,6 @@ bool missingTestFiles(Range)(Range givenFiles)
return false;
}
bool usesOptlink()
{
version (DigitalMars)
return os == "windows" && model == "32";
else
return false;
}
int main(string[] args)
{
string unitTestFilter;