Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to specifiy multiple gcc compilers using windows 8.1
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-06-23 05:52:56


On 6/23/2015 12:34 PM, Paul A. Bristow wrote:
>
>
>> -----Original Message-----
>> From: Paul A. Bristow [mailto:pbristow_at_[hidden]]
>> Sent: 05 June 2015 19:09
>> To: 'Boost.Build developer's and user's list'
>> Subject: Re: [Boost-build] How to specifiy multiple gcc compilers using windows 8.1
>>
>>
>>
>>> -----Original Message-----
>>> From: Vladimir Prus [mailto:vladimir.prus_at_[hidden]]
>>> Sent: 05 June 2015 08:52
>>> To: boost-build_at_[hidden]
>>> Subject: Re: [Boost-build] How to specifiy multiple gcc compilers
>>> using windows 8.1
>>>
>>> On 6/4/2015 3:20 PM, Paul A. Bristow wrote:
>>>> I am trying to specify multiple version of GCC compilers in my
>>>> user-config like this
>>>>
>>>> using gcc
>>>> : # version
>>>> 4.8.1
>>>> : # compiler exe location
>>>> "C:\Program Files\mingw-builds\x64-4.8.1-win32-seh-rev5\mingw64\bin\g++.exe"
>>>> : # options
>>>> ;
>>>>
>>>> or forward slash
>>>>
>>>> 'C:/Program' is not recognized as an internal or external command,
>>>> operable program or batch file.
>>>
>>> Paul,
>>>
>>> I've checked in a fix for this:
>>>
>>>
>>> https://github.com/boostorg/build/commit/831e37cedb1aeefb53f20afd60061
>>> 8a7946241e9
>>>
>>> Could you please try again after updating your Boost.Build?
>>
>> Updated to 831e37cedb1aeefb53f20afd600618a7946241e9
>>
>> ran bootstrap.bat
>>
>> (I presume that this updates boost Boost.Build?)
>>
>> I:\modular-boost\libs\fixed_point>b2 --toolset=gcc-5.1.0 --debug-configuration
>
> Worked fine.
>
> but now I have tried to add the Clang compiler to my user-config.jam using the recommended location
> from the http://llvm.org/releases/download.html installer Clang for Windows.
>
> using clang from http://llvm.org/releases/download.html
>
> but I hit a similar bjam's failure to understand the d***ned Windows filenames with \ () and spaces.
>
> <b2 toolset-clang
>
> 'C:\Program' is not recognized as an internal or external command, operable program or batch
> file.

Paul,

could you try the attached patch?

> I got it to work using
>
> "C:/Progra~1/LLVM/bin/clang++.exe"
>
> but it would be nice if one didn't need to know/do this (or indeed muck about with the extra \ to
> get a \ at all).
>
> It certainly would be at least helpful if this was mentioned prominently in the docs.

It's hard to disable \ escapes, I'll see about adding to docs.

- Volodya




Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk