Here is another idea plus explanation for the weird behavior:

https://stackoverflow.com/questions/47685670/write-a-text-file-in-appveyor-script

I'm not really a big fan of powershell. Is there an image on appveyor which has git bash or similar installed? If not, would it be hard to install bash before the installation?

Regards,
Christian



On Wed, Dec 6, 2017 at 9:56 PM, Stefan Seefeld via Boost-build <boost-build@lists.boost.org> wrote:
On 06.12.2017 19:45, Steven Watanabe via Boost-build wrote:
[...]

  I tried pasting it into a batch file and
it seems to work.  Obviously appveyor is
doing something subtly different, but it
isn't exactly clear what.  It seems like it's
getting one extra round of evaluation, somehow.

Yeah, I couldn't reproduce the error outside appveyor either.
This is why I had hoped that someone else had already generated user-config.jam 
files in appveyor.yml files, so I could simply learn from that experience, 
rather than stumbling around in the dark as I do now.

  You can avoid using user-config.jam for this
by setting the environmental variables,
ZLIB_INCLUDE/ZLIB_LIBRARY_PATH (and similar
variables for the other libraries).  It will
probably also work if you use
b2 ... include=%VCPKG%\include library-path=%VCPKG%\lib
although I don't think I've actually tested this.

OK, that seems to work fine indeed. Thanks !

Stefan
-- 

      ...ich hab' noch einen Koffer in Berlin...
    

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build