Skip to content

Commit

Permalink
make linux version script generation the default case (dotnet#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Dec 27, 2017
1 parent b5050e6 commit 99435e1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ private string GetExportsFileExtenstion()
return ".def";
else if (_targetDetails.OperatingSystem == TargetOS.OSX)
return ".exports";
else if (_targetDetails.OperatingSystem == TargetOS.Linux)
else
return ".map";

return string.Empty;
}

private static bool IsInternalExport(MethodDesc method)
Expand All @@ -81,7 +79,7 @@ private void WriteExportedMethodsToFile(IEnumerable<string> exportNames)
foreach (var exportName in exportNames)
stringBuilder.AppendLine("_" + exportName);
}
else if (_targetDetails.OperatingSystem == TargetOS.Linux)
else
{
stringBuilder.AppendLine(_moduleName.ToUpper() + " {");
stringBuilder.AppendLine(" global:");
Expand Down

0 comments on commit 99435e1

Please sign in to comment.