[swift-build-dev] NSGetEnviron and PR#400

Yannick Heinrich yannick.heinrich at gmail.com
Fri Jun 10 04:19:28 CDT 2016


Hello,

I initiated the PR #400 in the package manager and I’m trying to implement
the last suggestion in this thread.

This is to recopy the current environment variables for git clone instead
of cherry-pick several specifics one.

I would like to use the _NSGetEnviron variable that should be defined in
Darwin but I don’t manage to reference it.

I tried:

return environ

return Darwin.environ

return libc.environ


I’m using the DEVELOPMENT-SNAPSHOT-2016-05-09-a toolchain.

Any tips on how to call this method from Swift ?

Regards

Yannick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20160610/9fbd3e80/attachment.html>


More information about the swift-build-dev mailing list