mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
bintools: add isGNU and isLLVM attributes
This commit is contained in:
parent
10222e1e37
commit
f5e63a0e9e
@ -25,6 +25,7 @@
|
|||||||
, nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
|
, nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
|
||||||
, propagateDoc ? bintools != null && bintools ? man
|
, propagateDoc ? bintools != null && bintools ? man
|
||||||
, extraPackages ? [], extraBuildCommands ? ""
|
, extraPackages ? [], extraBuildCommands ? ""
|
||||||
|
, isGNU ? bintools.isGNU or false, isLLVM ? bintools.isLLVM or false
|
||||||
, buildPackages ? {}
|
, buildPackages ? {}
|
||||||
, targetPackages ? {}
|
, targetPackages ? {}
|
||||||
, useMacosReexportHack ? false
|
, useMacosReexportHack ? false
|
||||||
@ -108,7 +109,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit targetPrefix suffixSalt;
|
inherit targetPrefix suffixSalt;
|
||||||
inherit bintools libc nativeTools nativeLibc nativePrefix;
|
inherit bintools libc nativeTools nativeLibc nativePrefix isGNU isLLVM;
|
||||||
|
|
||||||
emacsBufferSetup = pkgs: ''
|
emacsBufferSetup = pkgs: ''
|
||||||
; We should handle propagation here too
|
; We should handle propagation here too
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
@ -5,7 +5,12 @@ let
|
|||||||
if stdenv.hostPlatform != stdenv.targetPlatform
|
if stdenv.hostPlatform != stdenv.targetPlatform
|
||||||
then "${stdenv.targetPlatform.config}-"
|
then "${stdenv.targetPlatform.config}-"
|
||||||
else "";
|
else "";
|
||||||
in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
|
in runCommand "llvm-binutils-${version}" {
|
||||||
|
preferLocalBuild = true;
|
||||||
|
passthru = {
|
||||||
|
isLLVM = true;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for prog in ${lld}/bin/*; do
|
for prog in ${lld}/bin/*; do
|
||||||
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
ln -s $prog $out/bin/${prefix}$(basename $prog)
|
||||||
|
Loading…
Reference in New Issue
Block a user