Boost logo

Boost :

Subject: Re: [boost] [release] 1.64.0 please test master snapshot
From: Jürgen Hunold (jhunold_at_[hidden])
Date: 2017-03-22 17:08:22


Hi Rene,

Am Mittwoch, 22. März 2017, 10:11:28 CET schrieb Jürgen Hunold via Boost:
> Windows 7 64bit
> Windows Server 2008 R2 Service Pack 1 64 bit

After some digging around, I found that the PowerShell Version on the machines
is
...\boost\tools\build\src\tools\vc141helper>powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

PS ..\boost\tools\build\src\tools\vc141helper> $Host.Version

Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1

whereas the $PSScriptRoot Variable used in GetCLPath.ps1 is available from
PowerShell 3+ (see http://stackoverflow.com/questions/3667238/how-can-i-get-the-file-system-location-of-a-powershell-script) for possible solutions.
But even if I hack

if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -
Parent }

into the script, it then later bails out with more PS3 specific problems.

TLDR; Auto-Detection is broken with PowerShell 2

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! 
* voice: ++49 4257 300       ! Fährstraße 1
* fax  : ++49 4257 300       ! 31609 Balge/Sebbenhausen
* jhunold_at_gmx.eu             ! Germany



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk