Skip to content

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented May 10, 2018

PR Summary

The main purpose of this was to enable full symbols for windows release build.
I discovered an additional issue when trying to fix this:

  • We were building Linux without optimization (debug)

This PR addresses this my merging the Linux configuration into the release configuration and using a condition to add the build constant for unix
Update: optimizing on mac and Linux cause crashes. An issue was filed to track this: https://github.com/dotnet/corefx/issues/29700

Before we merge, I should validate that the release build works for:

  • Linux
  • mac
  • windows

PR Checklist

@TravisEz13 TravisEz13 changed the title Enbale full symbols for windows WIP: Enable full symbols for windows May 10, 2018
<DebugType>full</DebugType>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' And '$(IsWindows)' == 'true' ">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true -> false

build.psm1 Outdated
Write-Verbose "Using configuration '$Configuration'"

$PowerShellDir = if ($Configuration -eq 'Linux') {
$PowerShellDir = if ($Environment.IsLinux -or $Environment.IsMacOS) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do -not $Environment.IsWindows here as we elsewhere. Non-blocking.

<DebugType>full</DebugType>
</PropertyGroup>


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually have a blank line between groups.

</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' And '$(IsWindows)' == 'true' ">
<!-- Define non-windows, release configuratio properties -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo configuratio -> configuration

Copy link
Member

@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TravisEz13 TravisEz13 force-pushed the enbale_full_symbols_for_windows branch from 509f48c to 81c795c Compare May 14, 2018 18:01
@TravisEz13 TravisEz13 changed the title WIP: Enable full symbols for windows Enable full symbols for windows May 14, 2018
@TravisEz13
Copy link
Member Author

I filed an issue with dotnet for the issue encountered with optimizing non-windows platforms: https://github.com/dotnet/corefx/issues/29700

@TravisEz13 TravisEz13 merged commit 472b5f7 into PowerShell:master May 14, 2018
@TravisEz13 TravisEz13 deleted the enbale_full_symbols_for_windows branch May 14, 2018 22:01
<!-- Set-Date fails with optimize enabled in NonWindowsSetDate
Debugging the issues resolves the problem
-->
<Optimize>false</Optimize>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TravisEz13 Should we set true because we fixed Set-Date?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a tracking issue with all the steps: #6872 We still have some steps before we can change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants