Skip to content

Commit

Permalink
gccWithoutTargetLibc: enable langCC
Browse files Browse the repository at this point in the history
Previously gccWithoutTargetLibc was built with `langCC = false;`, which
meant stdenvNoLibc had C++ support when not cross compiling or when the
host platform toolchain is LLVM, but did not have C++ support when cross
compiling for a non-Darwin and non-LLVM host platform. This patch fixes
issues when cross compiling C++ packages built with stdenvNoLibc like
LLVM libc and the mlibc package I'm (sanana) working on.

Co-Authored-By: Artturin <[email protected]>
  • Loading branch information
lzcunt and Artturin committed Jan 3, 2025
1 parent 5209768 commit 17b4211
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6040,7 +6040,6 @@ with pkgs;
isl = if !stdenv.hostPlatform.isDarwin then isl_0_20 else null;

withoutTargetLibc = true;
langCC = false;
libcCross = libcCross1;
targetPackages.stdenv.cc.bintools = binutilsNoLibc;
enableShared =
Expand Down

0 comments on commit 17b4211

Please sign in to comment.