anchor.diff:      "-DLLVM_ENABLE_RTTI=ON"
     ] ++ stdenv.lib.optional enableSharedLibraries
       "-DBUILD_SHARED_LIBS=ON"
  -    ++ stdenv.lib.optional (!isDarwin)
  -    "-DLLVM_BINUTILS_INCDIR=${binutils}/include"
  -    ++ stdenv.lib.optionals ( isDarwin) [
  -    "-DLLVM_ENABLE_LIBCXX=ON"
  -    "-DCAN_TARGET_i386=false"
  -  ];
  +    ++ stdenv.lib.optional true
  +    "-DLLVM_BINUTILS_INCDIR=${binutils}/include";
   
     doCheck = true;
   
  
positive.code:   ];
  
    nativeBuildInputs = [ perl groff cmake ninja python ];
    buildInputs = [ libxml2 libffi ncurses zlib ]
      ++ stdenv.lib.optional stdenv.isDarwin libcxxabi;
  
    # hacky fix: created binaries need to be run before installation
    preBuild = ''
  
negative.code: , compiler-rt_src
  , libcxxabi
  , debugVersion ? false
  , enableSharedLibraries ? true
  }:
  
  let
  