[erlang-questions] Cross-compiling tests with quoted ENV vars

Lukas Larsson lukas@REDACTED
Mon Sep 23 17:40:03 CEST 2013


On Sat, Sep 21, 2013 at 11:17 AM, Matt Lewandowsky <matt@REDACTED>wrote:

> It appears to use OsType extensively, which wouldn't be much of a problem
> so far except for the fact that my target system doesn't use -lpthread for
> POSIX threads. I can't just add a new case there because since because I'm
> cross-compiling from Linux for not-Linux, it will always match the {unix,_}
> case. I'm not finding any way to actually determine the cross-compilation
> OS type there. I expect this is more of not quite understanding just how
> the pieces of the cross compile support are supposed to mesh with the tests
> than anything else.

I think you should be able to specify an os by directly calling
ts_install:install/2 instead of going through ts:install/1. As you noticed,
all of ts_install and friends have only been "ported" to work with
unix/win32, so you will have to add a few clauses for any new operating

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130923/4f3c96bd/attachment.htm>

More information about the erlang-questions mailing list