Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions pkgs/development/interpreters/cling/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ cmake
, fetchFromGitHub
, fetchgit
, git
, lib
, libffi
Expand Down Expand Up @@ -28,7 +27,7 @@

# Build with libc++ (LLVM) rather than stdlibc++ (GCC).
# This is experimental and not all features work.
, useLLVMLibcxx ? false
, useLLVMLibcxx ? clangStdenv.isDarwin
}:

let
Expand All @@ -53,7 +52,7 @@ let
clingSrc = fetchFromGitHub {
owner = "root-project";
repo = "cling";
rev = "v1.0";
rev = "v${version}";
sha256 = "sha256-Ye8EINzt+dyNvUIRydACXzb/xEPLm0YSkz08Xxw3xp4=";
};

Expand All @@ -66,8 +65,6 @@ let

patches = [
./no-clang-cpp.patch

# ./force-install-cling-targets.patch
];

nativeBuildInputs = [ python3 git cmake ];
Expand Down Expand Up @@ -122,10 +119,10 @@ let
cxxFlags = if useLLVMLibcxx then [
"-I" "${lib.getDev llvmPackages_13.libcxx}/include/c++/v1"
"-L" "${llvmPackages_13.libcxx}/lib"
"-l" "${llvmPackages_13.libcxx}/lib/libc++.so"
"-l" "${llvmPackages_13.libcxx}/lib/libc++${stdenv.hostPlatform.extensions.sharedLibrary}"
] else [
"-I" "${gcc-unwrapped}/include/c++/${gcc-unwrapped.version}"
"-I" "${gcc-unwrapped}/include/c++/${gcc-unwrapped.version}/x86_64-unknown-linux-gnu"
"-I" "${gcc-unwrapped}/include/c++/${gcc-unwrapped.version}/${stdenv.hostPlatform.config}"
];

# The flags passed to the wrapped cling should
Expand Down

This file was deleted.