Skip to content

Enable full symbols for windows - #6853

Merged
Travis Plunk (TravisEz13) merged 13 commits into
PowerShell:masterfrom
TravisEz13:enbale_full_symbols_for_windows
May 14, 2018
Merged

Enable full symbols for windows#6853
Travis Plunk (TravisEz13) merged 13 commits into
PowerShell:masterfrom
TravisEz13:enbale_full_symbols_for_windows

Conversation

@TravisEz13

@TravisEz13 Travis Plunk (TravisEz13) commented May 10, 2018

Copy link
Copy Markdown
Member

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 Travis Plunk (TravisEz13) changed the title Enbale full symbols for windows WIP: Enable full symbols for windows May 10, 2018
Comment thread PowerShell.Common.props Outdated
<DebugType>full</DebugType>
</PropertyGroup>

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

true -> false

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

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread PowerShell.Common.props Outdated
</PropertyGroup>

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

typo configuratio -> configuration

@daxian-dbw Dongbo Wang (daxian-dbw) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@TravisEz13
Travis Plunk (TravisEz13) force-pushed the enbale_full_symbols_for_windows branch from 509f48c to 81c795c Compare May 14, 2018 18:01
@TravisEz13 Travis Plunk (TravisEz13) changed the title WIP: Enable full symbols for windows Enable full symbols for windows May 14, 2018
@TravisEz13

Copy link
Copy Markdown
Member Author

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

Comment thread PowerShell.Common.props
<!-- Set-Date fails with optimize enabled in NonWindowsSetDate
Debugging the issues resolves the problem
-->
<Optimize>false</Optimize>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Travis Plunk (@TravisEz13) Should we set true because we fixed Set-Date?

Copy link
Copy Markdown
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.

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
The main purpose of this was to enable full symbols for windows release build.
Also makes explicit where we are optimizing and where we are not optimizing due to https://github.com/dotnet/corefx/issues/29700
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