cc-wrapper: Remove dead code
ccPath is only defined below, so this condition would never be true. Worse, that's not quite true: what if somebody happend to have `/clang` and no sandboxing. Boy, wouldn't that be annoying to debug!
This commit is contained in:
@@ -217,13 +217,6 @@ stdenv.mkDerivation {
|
|||||||
echo "$gnatCFlags" > $out/nix-support/gnat-cflags
|
echo "$gnatCFlags" > $out/nix-support/gnat-cflags
|
||||||
''}
|
''}
|
||||||
|
|
||||||
if [ -e $ccPath/clang ]; then
|
|
||||||
# Need files like crtbegin.o from gcc
|
|
||||||
# It's unclear if these will ever be provided by an LLVM project
|
|
||||||
ccCFlags="$ccCFlags -B$basePath"
|
|
||||||
ccCFlags="$ccCFlags -isystem$cc/lib/clang/$ccVersion/include"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "$ccLDFlags" > $out/nix-support/cc-ldflags
|
echo "$ccLDFlags" > $out/nix-support/cc-ldflags
|
||||||
echo "$ccCFlags" > $out/nix-support/cc-cflags
|
echo "$ccCFlags" > $out/nix-support/cc-cflags
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user