cc-wrapper: add option to skip flags for native optimizations

This commit is contained in:
Nikolay Amiantov
2016-03-15 19:35:07 +03:00
parent 89693e71b9
commit 0c6db0ca48
10 changed files with 32 additions and 21 deletions

View File

@@ -23,6 +23,7 @@ rec {
commonPreHook =
''
export NIX_ENFORCE_PURITY="''${NIX_ENFORCE_PURITY-1}"
export NIX_ENFORCE_NO_NATIVE="''${NIX_ENFORCE_NO_NATIVE-1}"
${if system == "x86_64-linux" then "NIX_LIB64_IN_SELF_RPATH=1" else ""}
${if system == "mips64el-linux" then "NIX_LIB32_IN_SELF_RPATH=1" else ""}
'';