[Nix-dev] NIX_ENFORCE_NO_NATIVE

Vladimír Čunát vcunat at gmail.com
Wed Jun 8 22:54:04 CEST 2016


On 06/08/2016 04:14 PM, Andreas Herrmann wrote:
> Especially, when being run outside of a nix-builder.

IIRC its' conditioned on $NIX_ENFORCE_NO_NATIVE exactly in order not to
be filtered out when run outside a nix builder. IMO that's a good
default. Hydra isn't the only reason; many devs use remote builds or
nix-copy-closure.

If you do want -march or -mtune in mkDerivation, you may either set
NIX_ENFORCE_NO_NATIVE = false; or even better, specify it explicitly,
e.g. -march=btver1

--Vladimir


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3771 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160608/e5f06b67/attachment.p7s>


More information about the nix-dev mailing list