Add environ extern implementation to freebsd

Signed-off-by: InfRandomness <infrandomness@gmail.com>
This commit is contained in:
InfRandomness 2022-07-01 21:24:24 +02:00
parent 602a3dcefd
commit 5ec25359ff
No known key found for this signature in database
GPG key ID: 60B6C81EF033441A

View file

@ -442,6 +442,14 @@ impl<'mir, 'tcx> Evaluator<'mir, 'tcx> {
Self::add_extern_static(this, name, place.ptr);
}
}
"freebsd" => {
// "environ"
Self::add_extern_static(
this,
"environ",
this.machine.env_vars.environ.unwrap().ptr,
);
}
"windows" => {
// "_tls_used"
// This is some obscure hack that is part of the Windows TLS story. It's a `u8`.